File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33" Maintainer: Claudio Fleiner <claudio@fleiner.com>
44" URL: http://www.fleiner.com/vim/syntax/javacc.vim
55" Last Change: 2012 Oct 05
6+ " 2026 May 11 by Vim project: check for existence of javaFuncDef before clearing it
67
78" Uses java.vim, and adds a few special things for JavaCC Parser files.
89" Those files usually have the extension *.jj
@@ -33,7 +34,9 @@ syn clear javaError2
3334" remove function definitions (they look different) (first define in
3435" in case it was not defined in java.vim)
3536" syn match javaFuncDef "--"
36- syn clear javaFuncDef
37+ if hlexists (' javaFuncDef' )
38+ syn clear javaFuncDef
39+ endif
3740syn match javaFuncDef " [$_a-zA-Z][$_a-zA-Z0-9_. \[\] ]*([^-+*/()]*)[ \t ]*:" contains =javaType
3841
3942syn keyword javaccPackages options DEBUG_PARSER DEBUG_LOOKAHEAD DEBUG_TOKEN_MANAGER
You can’t perform that action at this time.
0 commit comments