Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ayacc.vim76 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	AYacc3" Maintainer:	Mathieu Clabaut <mathieu.clabaut@free.fr>4" LastChange:	2011 Dec 255" Original:	Yacc, maintained by Dr. Charles E. Campbell, Jr.6" Comment:	     Replaced sourcing c.vim file by ada.vim and rename yacc*7"		in ayacc*8 9" quit when a syntax file was already loaded10if exists("b:current_syntax")11   finish12endif13 14" Read the Ada syntax to start with15runtime! syntax/ada.vim16unlet b:current_syntax17 18let s:cpo_save = &cpo19set cpo&vim20 21" Clusters22syn cluster	ayaccActionGroup	contains=ayaccDelim,cInParen,cTodo,cIncluded,ayaccDelim,ayaccCurlyError,ayaccUnionCurly,ayaccUnion,cUserLabel,cOctalZero,cCppOut2,cCppSkip,cErrInBracket,cErrInParen,cOctalError23syn cluster	ayaccUnionGroup	contains=ayaccKey,cComment,ayaccCurly,cType,cStructure,cStorageClass,ayaccUnionCurly24 25" Yacc stuff26syn match	ayaccDelim	"^[ \t]*[:|;]"27syn match	ayaccOper	"@\d\+"28 29syn match	ayaccKey	"^[ \t]*%\(token\|type\|left\|right\|start\|ident\)\>"30syn match	ayaccKey	"[ \t]%\(prec\|expect\|nonassoc\)\>"31syn match	ayaccKey	"\$\(<[a-zA-Z_][a-zA-Z_0-9]*>\)\=[\$0-9]\+"32syn keyword	ayaccKeyActn	yyerrok yyclearin33 34syn match	ayaccUnionStart	"^%union"	skipwhite skipnl nextgroup=ayaccUnion35syn region	ayaccUnion	contained matchgroup=ayaccCurly start="{" matchgroup=ayaccCurly end="}"	contains=@ayaccUnionGroup36syn region	ayaccUnionCurly	contained matchgroup=ayaccCurly start="{" matchgroup=ayaccCurly end="}" contains=@ayaccUnionGroup37syn match	ayaccBrkt	contained "[<>]"38syn match	ayaccType	"<[a-zA-Z_][a-zA-Z0-9_]*>"	contains=ayaccBrkt39syn match	ayaccDefinition	"^[A-Za-z][A-Za-z0-9_]*[ \t]*:"40 41" special Yacc separators42syn match	ayaccSectionSep	"^[ \t]*%%"43syn match	ayaccSep	"^[ \t]*%{"44syn match	ayaccSep	"^[ \t]*%}"45 46" I'd really like to highlight just the outer {}.  Any suggestions???47syn match	ayaccCurlyError	"[{}]"48syn region	ayaccAction	matchgroup=ayaccCurly start="{" end="}" contains=ALLBUT,@ayaccActionGroup49 50 51" Internal ayacc highlighting links52hi def link ayaccBrkt	ayaccStmt53hi def link ayaccKey	ayaccStmt54hi def link ayaccOper	ayaccStmt55hi def link ayaccUnionStart	ayaccKey56 57" External ayacc highlighting links58hi def link ayaccCurly	Delimiter59hi def link ayaccCurlyError	Error60hi def link ayaccDefinition	Function61hi def link ayaccDelim	Function62hi def link ayaccKeyActn	Special63hi def link ayaccSectionSep	Todo64hi def link ayaccSep	Delimiter65hi def link ayaccStmt	Statement66hi def link ayaccType	Type67 68" since Bram doesn't like my Delimiter :|69hi def link Delimiter	Type70 71let b:current_syntax = "ayacc"72 73let &cpo = s:cpo_save74unlet s:cpo_save75" vim: ts=1576 
codekingpro/portable-devtools · Team Ai