|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if exists("b:current_syntax") |
|
|
finish |
|
|
endif |
|
|
|
|
|
|
|
|
runtime! syntax/ada.vim |
|
|
unlet b:current_syntax |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
syn cluster aflexListGroup contains=aflexAbbrvBlock,aflexAbbrv,aflexAbbrv,aflexAbbrvRegExp,aflexInclude,aflexPatBlock,aflexPat,aflexBrace,aflexPatString,aflexPatTag,aflexPatTag,aflexPatComment,aflexPatCodeLine,aflexMorePat,aflexPatSep,aflexSlashQuote,aflexPatCode,cInParen,cUserLabel,cOctalZero,cCppSkip,cErrInBracket,cErrInParen,cOctalError,cCppOut2 |
|
|
syn cluster aflexListPatCodeGroup contains=aflexAbbrvBlock,aflexAbbrv,aflexAbbrv,aflexAbbrvRegExp,aflexInclude,aflexPatBlock,aflexPat,aflexBrace,aflexPatTag,aflexPatTag,aflexPatComment,aflexPatCodeLine,aflexMorePat,aflexPatSep,aflexSlashQuote,cInParen,cUserLabel,cOctalZero,cCppSkip,cErrInBracket,cErrInParen,cOctalError,cCppOut2 |
|
|
|
|
|
|
|
|
syn region aflexAbbrvBlock start="^\([a-zA-Z_]\+\t\|%{\)" end="^%%$"me=e-2 skipnl nextgroup=aflexPatBlock contains=aflexAbbrv,aflexInclude,aflexAbbrvComment |
|
|
syn match aflexAbbrv "^\I\i*\s"me=e-1 skipwhite contained nextgroup=aflexAbbrvRegExp |
|
|
syn match aflexAbbrv "^%[sx]" contained |
|
|
syn match aflexAbbrvRegExp "\s\S.*$"lc=1 contained nextgroup=aflexAbbrv,aflexInclude |
|
|
syn region aflexInclude matchgroup=aflexSep start="^%{" end="%}" contained contains=ALLBUT,@aflexListGroup |
|
|
syn region aflexAbbrvComment start="^\s\+/\*" end="\*/" |
|
|
|
|
|
|
|
|
syn region aflexPatBlock matchgroup=Todo start="^%%$" matchgroup=Todo end="^%%$" skipnl skipwhite contains=aflexPat,aflexPatTag,aflexPatComment |
|
|
syn region aflexPat start=+\S+ skip="\\\\\|\\." end="\s"me=e-1 contained nextgroup=aflexMorePat,aflexPatSep contains=aflexPatString,aflexSlashQuote,aflexBrace |
|
|
syn region aflexBrace start="\[" skip=+\\\\\|\\+ end="]" contained |
|
|
syn region aflexPatString matchgroup=String start=+"+ skip=+\\\\\|\\"+ matchgroup=String end=+"+ contained |
|
|
syn match aflexPatTag "^<\I\i*\(,\I\i*\)*>*" contained nextgroup=aflexPat,aflexPatTag,aflexMorePat,aflexPatSep |
|
|
syn match aflexPatTag +^<\I\i*\(,\I\i*\)*>*\(\\\\\)*\\ |
|
|
syn region aflexPatComment start="^\s*/\*" end="\*/" skipnl contained contains=cTodo nextgroup=aflexPatComment,aflexPat,aflexPatString,aflexPatTag |
|
|
syn match aflexPatCodeLine ".*$" contained contains=ALLBUT,@aflexListGroup |
|
|
syn match aflexMorePat "\s*|\s*$" skipnl contained nextgroup=aflexPat,aflexPatTag,aflexPatComment |
|
|
syn match aflexPatSep "\s\+" contained nextgroup=aflexMorePat,aflexPatCode,aflexPatCodeLine |
|
|
syn match aflexSlashQuote +\(\\\\\)*\\ |
|
|
syn region aflexPatCode matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" skipnl contained contains=ALLBUT,@aflexListPatCodeGroup |
|
|
|
|
|
syn keyword aflexCFunctions BEGIN input unput woutput yyleng yylook yytext |
|
|
syn keyword aflexCFunctions ECHO output winput wunput yyless yymore yywrap |
|
|
|
|
|
|
|
|
syn cluster cParenGroup add=aflex.* |
|
|
syn cluster cDefineGroup add=aflex.* |
|
|
syn cluster cPreProcGroup add=aflex.* |
|
|
syn cluster cMultiGroup add=aflex.* |
|
|
|
|
|
|
|
|
syn sync clear |
|
|
syn sync minlines=300 |
|
|
syn sync match aflexSyncPat grouphere aflexPatBlock "^%[a-zA-Z]" |
|
|
syn sync match aflexSyncPat groupthere aflexPatBlock "^<$" |
|
|
syn sync match aflexSyncPat groupthere aflexPatBlock "^%%$" |
|
|
|
|
|
|
|
|
|
|
|
hi def link aflexSlashQuote aflexPat |
|
|
hi def link aflexBrace aflexPat |
|
|
hi def link aflexAbbrvComment aflexPatComment |
|
|
|
|
|
hi def link aflexAbbrv SpecialChar |
|
|
hi def link aflexAbbrvRegExp Macro |
|
|
hi def link aflexCFunctions Function |
|
|
hi def link aflexMorePat SpecialChar |
|
|
hi def link aflexPat Function |
|
|
hi def link aflexPatComment Comment |
|
|
hi def link aflexPatString Function |
|
|
hi def link aflexPatTag Special |
|
|
hi def link aflexSep Delimiter |
|
|
|
|
|
let b:current_syntax = "aflex" |
|
|
|
|
|
|
|
|
|