mirror of
https://github.com/neovim/neovim.git
synced 2026-06-16 08:41:15 +00:00
vim-patch:bfebd12: runtime(javacc): Check for existence of javaFuncDef syn group before clearing it (#39731)
fixes: vim/vim#20190bfebd1209bCo-authored-by: Christian Brabandt <cb@256bit.org> (cherry picked from commit5e756aa825)
This commit is contained in:
committed by
github-actions[bot]
parent
647b6be489
commit
dfd6cd477f
@@ -3,6 +3,7 @@
|
|||||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||||
" URL: http://www.fleiner.com/vim/syntax/javacc.vim
|
" URL: http://www.fleiner.com/vim/syntax/javacc.vim
|
||||||
" Last Change: 2012 Oct 05
|
" Last Change: 2012 Oct 05
|
||||||
|
" 2026 May 11 by Vim project: check for existence of javaFuncDef before clearing it
|
||||||
|
|
||||||
" Uses java.vim, and adds a few special things for JavaCC Parser files.
|
" Uses java.vim, and adds a few special things for JavaCC Parser files.
|
||||||
" Those files usually have the extension *.jj
|
" Those files usually have the extension *.jj
|
||||||
@@ -33,7 +34,9 @@ syn clear javaError2
|
|||||||
" remove function definitions (they look different) (first define in
|
" remove function definitions (they look different) (first define in
|
||||||
" in case it was not defined in java.vim)
|
" in case it was not defined in java.vim)
|
||||||
"syn match javaFuncDef "--"
|
"syn match javaFuncDef "--"
|
||||||
syn clear javaFuncDef
|
if hlexists('javaFuncDef')
|
||||||
|
syn clear javaFuncDef
|
||||||
|
endif
|
||||||
syn match javaFuncDef "[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)[ \t]*:" contains=javaType
|
syn match javaFuncDef "[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)[ \t]*:" contains=javaType
|
||||||
|
|
||||||
syn keyword javaccPackages options DEBUG_PARSER DEBUG_LOOKAHEAD DEBUG_TOKEN_MANAGER
|
syn keyword javaccPackages options DEBUG_PARSER DEBUG_LOOKAHEAD DEBUG_TOKEN_MANAGER
|
||||||
|
|||||||
Reference in New Issue
Block a user