robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
136c11ca22
master
1" Vim syntax file 2" Language: ANTLR4, ANother Tool for Language Recognition v4 <www.antlr.org> 3" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com> 4" Last Change: 2024 July 09 5 6" quit when a syntax file was already loaded 7if exists ( "b:current_syntax" ) 8finish 9endif 10 11" Keywords. See https://github.com/antlr/antlr4/blob/4.13.1/doc/lexicon.md 12syn keyword antlr4Include import 13" https://github.com/antlr/antlr4/blob/4.13.1/doc/options.md 14" https://github.com/antlr/antlr4/blob/4.13.1/doc/grammars.md 15syn keyword antlr4Structure fragment lexer parser grammar options channels tokens mode 16syn keyword antlr4Statement returns locals 17syn keyword antlr4Exceptions throws catch finally 18 19" Comments. 20syn keyword antlr4Todo contained TODO FIXME XXX NOTE 21syn region antlr4Comment start = "// "end = "$ "contains = antlr4Todo , @Spell 22syn region antlr4Comment start = "/\* "end = "\*/ "contains = antlr4Todo , @Spell 23 24hi def link antlr4Include Include 25hi def link antlr4Structure Structure 26hi def link antlr4Statement Statement 27hi def link antlr4Exceptions Structure 28hi def link antlr4Comment Comment 29 30let b: current_syntax = "antlr4"