summaryrefslogtreecommitdiff
path: root/.config/nvim/after/syntax/yacc.vim
blob: 51f3b3c7c6119c41e1f2e77978e9798489302d61 (plain) (blame)
1
2
3
4
5
syn match yaccDefines '^%\(header\|output\)\>'
syn match yaccKey '^\s*%\(nterm\|precedence\)\>' contained
syn match yaccType '<[a-zA-Z_][a-zA-Z0-9_]*\s*\*>' contains=yaccBrkt contained
syn match yaccString '"[^"]*"' contained
syn match yaccVar '@\(\$\|\d\+\)' containedin=cParen,cPreProc,cMulti contained