summaryrefslogtreecommitdiff
path: root/.config/nvim/after/syntax/yacc.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/syntax/yacc.vim')
-rw-r--r--.config/nvim/after/syntax/yacc.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/after/syntax/yacc.vim b/.config/nvim/after/syntax/yacc.vim
new file mode 100644
index 0000000..24993dd
--- /dev/null
+++ b/.config/nvim/after/syntax/yacc.vim
@@ -0,0 +1,5 @@
+syn match yaccDefines '^%\(header\|output\)\>'
+syn match yaccKey '^\s*%\(nterm\|precedence\|nterm\)\>' 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