diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-15 20:10:18 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-15 20:10:18 +0100 |
commit | e47752480742b615313bbf165f04d318c4f51d06 (patch) | |
tree | af6747e713d0802e2a4769a7c7cbdcd4fa492b69 /.config/nvim/after | |
parent | 5b7b0f77d8a37e7cfd5ddd901f5bcd295413a0bf (diff) |
nvim: Add bison syntax
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/syntax/yacc.vim | 5 |
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 |