" Vim syntax file " Language: TXL " Author: Adrian Thurston " " Based on sytax file written by Jim Cordy syn clear " Anything preprocessor syntax match txlPreprocessor "^[\t ]*#.*$" " Comments syn match txlComment "%.*$" " Keywords syn keyword txlKeyword assert end keys define redefine repeat list opt rule function syn keyword txlKeyword external replace by match skipping construct deconstruct syn keyword txlKeyword where not include comments compounds tokens all attr syn keyword txlKeyword import export each " New Keywords syn keyword txlKeyword type if then else forward must module public using case alt do " Formatting tokens syn match txlFormat "\[NL\]" syn match txlFormat "\[IN\]" syn match txlFormat "\[IN_[1-9][0-9]*\]" syn match txlFormat "\[EX\]" syn match txlFormat "\[EX_[1-9][0-9]*\]" syn match txlFormat "\[SP\]" syn match txlFormat "\[SP_[1-9][0-9]*\]" syn match txlFormat "\[TAB\]" syn match txlFormat "\[TAB_[1-9][0-9]*\]" syn match txlFormat "\[SPOFF\]" syn match txlFormat "\[SPON\]" syn match txlFormat "\[KEEP\]" " Literal values syn match txlLiteral "'[^ \t"'][^ \t"'\[\]]*" " quoted literal symbol syn match txlLiteral "''\(\\.\|[^']\)*'" " quoted charlit syn match txlLiteral "'\"\(\\.\|[^"]\)*\"" " quoted stringlit syn match txlLiteral "\"\(\\.\|[^"]\)*\"" " unquoted stringlit syn match txlLiteral "\<\d\+\(.\d\+\)\=\([Ee][+-]\=\d\+\)\=\>" " unquoted number hi link txlKeyword Keyword hi link txlComment Comment hi txlFormat ctermfg=DarkGreen guifg=DarkGreen hi link txlLiteral String hi link txlPreprocessor Macro