From e47752480742b615313bbf165f04d318c4f51d06 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 Nov 2023 20:10:18 +0100 Subject: nvim: Add bison syntax --- .config/nvim/after/syntax/yacc.vim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .config/nvim/after/syntax/yacc.vim (limited to '.config/nvim/after') 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 -- cgit v1.2.3