Highlight documentation
Regular Expressions
Examples
Regex=[[ [A-Z]\w+ ]]
Highlight identifiers beginning with a capital letter.
Regex=[[ [$@%]\w+ ]]
Highlight variables beginning with $, @ or %.
Regex=[[ \$\{(\w+)\}) ]] or Regex=[[ \$\{(\w+)\} ]], Group=1
Highlight variable names like ${name}. Only the enclosed name is highlighted as keyword. The grouping feature is used to achieve this effect. If no capturing group index is defined (like in the first example above), the right-most group's match (highest capturing index) is returned.
Regex=[[ (\w+)\s*\( ]]
Highlight method names. Note that grouping is used again.
Regex=[[STO\xe2\x88\x91]]
Recognize Unicode characters in a keyword.
[[\A(?!x)x]]
A never matching expression. Can be used to disable a default syntax element.