Changeset 4330

Show
Ignore:
Timestamp:
06/28/08 17:27:50 (2 months ago)
Author:
pmoura
Message:

Updated the support for the Pygments syntax highlighter to avoid marking as errors non-standard directives.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/RELEASE_NOTES.txt

    r4329 r4330  
    4545    Logtalk libraries with the same name as the SWI-Prolog library modules  
    4646    we intended to load). 
     47 
     48    Updated the support for the Pygments syntax highlighter to avoid marking  
     49    as errors non-standard directives. 
    4750 
    4851 
  • trunk/wenv/pygments/logtalk.py

    r4246 r4330  
    165165            (r'(public|protected|private)(?=[(])', Keyword, 'root'), 
    166166            # Other directives 
    167             (r'\be(ncoding|xport)(?=[(])', Keyword, 'root'), 
    168             (r'\bin(fo|itialization)(?=[(])', Keyword, 'root'), 
    169             (r'\b(dynamic|synchronized|threaded)[.]', Keyword, 'root'), 
    170             (r'\b(alias|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|synchronized)(?=[(])', Keyword, 'root'), 
    171             (r'\bop(?=[(])', Keyword, 'root'), 
    172             (r'\b(calls|use(s|_module))(?=[(])', Keyword, 'root'), 
     167            (r'e(ncoding|xport)(?=[(])', Keyword, 'root'), 
     168            (r'in(fo|itialization)(?=[(])', Keyword, 'root'), 
     169            (r'(dynamic|synchronized|threaded)[.]', Keyword, 'root'), 
     170            (r'(alias|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|synchronized)(?=[(])', Keyword, 'root'), 
     171            (r'op(?=[(])', Keyword, 'root'), 
     172            (r'(calls|use(s|_module))(?=[(])', Keyword, 'root'), 
     173            (r'[a-z][a-zA-Z0-9_]*(?=[(])', Text, 'root'), 
     174            (r'[a-z][a-zA-Z0-9_]*[.]', Text, 'root'), 
    173175        ], 
    174176