# Some regex tests # # Author: Andre Simon # Mail: andre.simon1@gmx.de # http:/www.andre-simon.de/ $KW_LIST(kwa)=goto break return continue asm case default if else switch while for do sizeof #Identifiers beginning with capital #$KW_RE(kwa)=regex([A-Z]\w+) # Method names #$KW_RE(kwc)=regex((\w+)\(\w*\)) #script variables beginning with $ #$KW_RE(kwd)=regex(\$\w+) #script variables beginning with $, enclosing name in {} #$KW_RE(kwe)=regex((\$\{\w+\})) # tags #$TAG_RE(kwe)=regex(\<.*\>) #$STRINGDELIMITERS=" ' #$STRINGDELIMITERS=regex(["']) #$SL_COMMENT=// #$SL_COMMENT=regex(//.*$) # Comment beginning in coloumn 1 #$SL_COMMENT=regex(^#.*) #$SL_COMMENT=regex(^COM\s.*) $ML_COMMENT=COMMENT END #$SL_COMMENT=COM #$ML_COMMENT=/* */ #Geht nicht weil re nicht mehrzeilig #$ML_COMMENT=regex(\".*\") $ALLOWNESTEDCOMMENTS=false #$IGNORECASE=false #$DIRECTIVE=# # Pascal directive: #$DIRECTIVE=regex(\{\$.*\}) #$ESCCHAR=\ #$ESCCHAR=regex(\\.) $SYMBOLS= ( ) [ ] { } , ; . : & | < > ! = / * % + - ~ #$CONTINUATIONSYMBOL=\ #$REFORMATTING=true