Changeset 1024 for trunk/wenv

Show
Ignore:
Timestamp:
06/02/04 02:20:06 (5 years ago)
Author:
pmoura
Message:

Optimized some of the regular expressions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wenv/kate/logtalk.xml

    r1020 r1024  
    3939                <RegExpr String = "\blogtalk_(compile|load)(?=[(])" attribute="Built-in" context="#stay" /> 
    4040                <!-- Database --> 
    41                 <RegExpr String = "\b(abolish|clause|retract|retractall)(?=[(])" attribute="Built-in" context="#stay" /> 
    42                 <RegExpr String = "\bassert(a|z)(?=[(])" attribute="Built-in" context="#stay" /> 
     41                <RegExpr String = "\b(clause|retract|retractall)(?=[(])" attribute="Built-in" context="#stay" /> 
     42                <RegExpr String = "\b(a(bolish|ssert(a|z))(?=[(])" attribute="Built-in" context="#stay" /> 
    4343                <!-- Control --> 
    4444                <RegExpr String = "\b(ca(ll|tch)|throw)(?=[(])" attribute="Built-in" context="#stay" /> 
     
    5555                <RegExpr String = "\b(floor|truncate|round|ceiling)(?=[(])" attribute="Built-in" context="#stay" /> 
    5656                <!-- Other arithemtic functors --> 
    57                 <RegExpr String = "\b(sin|cos|atan|exp|log|sqrt)(?=[(])" attribute="Built-in" context="#stay" /> 
     57                <RegExpr String = "\b(cos|atan|exp|log|s(in|qrt))(?=[(])" attribute="Built-in" context="#stay" /> 
    5858                <!-- Term testing --> 
    59                 <RegExpr String = "\b(var|atom|integer|float|atomic|compound|nonvar|number)(?=[(])" attribute="Built-in" context="#stay" /> 
     59                <RegExpr String = "\b(var|atom|integer|float|atomic|compound|n(onvar|umber))(?=[(])" attribute="Built-in" context="#stay" /> 
    6060                <!-- Stream selection and control --> 
    6161                <RegExpr String = "\bcurrent_(input|output)(?=[(])" attribute="Built-in" context="#stay" /> 
     
    6565                <RegExpr String = "\bflush_output(?=[(])" attribute="Built-in" context="#stay" /> 
    6666                <RegExpr String = "\b(stream_property|at_end_of_stream|set_stream_position)(?=[(])" attribute="Built-in" context="#stay" /> 
    67                 <!-- Character input/output --> 
    68                 <RegExpr String = "\b(get|peek|put)_char(?=[(])" attribute="Built-in" context="#stay" /> 
    69                 <RegExpr String = "\b((get|peek|put)_code|nl)(?=[(])" attribute="Built-in" context="#stay" /> 
     67                <!-- Character and byte input/output --> 
     68                <RegExpr String = "\b(get|peek|put)_(byte|c(har|ode))(?=[(])" attribute="Built-in" context="#stay" /> 
    7069                <RegExpr String = "\bnl\b" attribute="Built-in" context="#stay" /> 
    71                 <!-- Byte input/output --> 
    72                 <RegExpr String = "\b(get|peek|put)_byte(?=[(])" attribute="Built-in" context="#stay" /> 
    7370                <!-- Term input/output --> 
    7471                <RegExpr String = "\b(read_term|read)(?=[(])" attribute="Built-in" context="#stay" /> 
     
    7774                <RegExpr String = "\b(char_conversion|current_char_conversion)(?=[(])" attribute="Built-in" context="#stay" /> 
    7875                <!-- Atomic term processing --> 
    79                 <RegExpr String = "\batom_(length|concat)(?=[(])" attribute="Built-in" context="#stay" /> 
     76                <RegExpr String = "\batom_(length|c(hars|o(ncat|des)))(?=[(])" attribute="Built-in" context="#stay" /> 
    8077                <RegExpr String = "\b(char_code|sub_atom)(?=[(])" attribute="Built-in" context="#stay" /> 
    81                 <RegExpr String = "\batom_(chars|codes)(?=[(])" attribute="Built-in" context="#stay" /> 
    8278                <RegExpr String = "\bnumber_(chars|codes)(?=[(])" attribute="Built-in" context="#stay" /> 
    8379                <!-- Implementation defined hooks functions --> 
     
    167163                <RegExpr String = "\bend_(category|object|protocol)[.]" attribute="Directive" context="#pop" /> 
    168164                <!-- Predicate scope directives --> 
    169                 <RegExpr String = "\b(public|protected|private)(?=[(])" attribute="Directive" context="#pop" /> 
     165                <RegExpr String = "\bp(ublic|r(otected|ivate))(?=[(])" attribute="Directive" context="#pop" /> 
    170166                <!-- Other directives --> 
    171                 <RegExpr String = "\binitialization(?=[(])" attribute="Directive" context="#pop" /> 
    172                 <RegExpr String = "\b(info|mode)(?=[(])" attribute="Directive" context="#pop" /> 
     167                <RegExpr String = "\bin(fo|itialization)(?=[(])" attribute="Directive" context="#pop" /> 
     168                <RegExpr String = "\bmode(?=[(])" attribute="Directive" context="#pop" /> 
    173169                <RegExpr String = "\bdynamic[.]" attribute="Directive" context="#pop" /> 
    174                 <RegExpr String = "\b(dynamic|discontiguous|metapredicate)(?=[(])" attribute="Directive" context="#pop" /> 
     170                <RegExpr String = "\b(d(ynamic|iscontiguous)|metapredicate)(?=[(])" attribute="Directive" context="#pop" /> 
    175171                <RegExpr String = "\bop(?=[(])" attribute="Directive" context="#pop" /> 
    176172                <RegExpr String = "\b(calls|uses)(?=[(])" attribute="Directive" context="#pop" /> 
     
    178174 
    179175            <context name="entityrelations" attribute="Normal" lineEndContext="#stay"> 
    180                 <RegExpr String = "\b(extends|imp(lements|orts)|instantiates|specializes)(?=[(])" attribute="Directive" context="#stay" /> 
     176                <RegExpr String = "\b(extends|i(nstantiates|mp(lements|orts)))|specializes)(?=[(])" attribute="Directive" context="#stay" /> 
    181177                <Detect2Chars attribute="Normal" context="normal" char=")" char1="." /> 
    182178            </context>