Opened 4 years ago
Closed 4 years ago
#2141 closed defect (fixed)
Vim syntax file uses `hi link` instead of `hi def link`
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | 1.19.x |
Keywords: | vim | Cc: | chris-morgan@… |
uname -a: | n/a | ||
nginx -V: | n/a |
Description
contrib/vim/syntax/nginx.vim, lines 2417 to 2437.
These lines start with hi link
, but should start with hi def link
. Otherwise I can’t set the highlighting in my colorscheme file, because the syntax file which is loaded after it clobbers it.
See ':highlight-default' in the Vim help for more information and explanation.
-
contrib/vim/syntax/nginx.vim
a b 2414 2414 2415 2415 " highlight 2416 2416 2417 hi link ngxComment Comment2418 hi link ngxParamComment Comment2419 hi link ngxListenComment Comment2420 hi link ngxVariable Identifier2421 hi link ngxVariableString PreProc2422 hi link ngxString String2423 hi link ngxListenString String2417 hi def link ngxComment Comment 2418 hi def link ngxParamComment Comment 2419 hi def link ngxListenComment Comment 2420 hi def link ngxVariable Identifier 2421 hi def link ngxVariableString PreProc 2422 hi def link ngxString String 2423 hi def link ngxListenString String 2424 2424 2425 hi link ngxBoolean Boolean2426 hi link ngxDirectiveBlock Statement2427 hi link ngxDirectiveImportant Type2428 hi link ngxDirectiveListen Type2429 hi link ngxDirectiveControl Keyword2430 hi link ngxDirectiveError Constant2431 hi link ngxDirectiveDeprecated Error2432 hi link ngxDirective Identifier2433 hi link ngxDirectiveThirdParty Special2434 hi link ngxDirectiveThirdPartyDeprecated Error2425 hi def link ngxBoolean Boolean 2426 hi def link ngxDirectiveBlock Statement 2427 hi def link ngxDirectiveImportant Type 2428 hi def link ngxDirectiveListen Type 2429 hi def link ngxDirectiveControl Keyword 2430 hi def link ngxDirectiveError Constant 2431 hi def link ngxDirectiveDeprecated Error 2432 hi def link ngxDirective Identifier 2433 hi def link ngxDirectiveThirdParty Special 2434 hi def link ngxDirectiveThirdPartyDeprecated Error 2435 2435 2436 hi link ngxListenOptions Keyword2437 hi link ngxListenOptionsDeprecated Error2436 hi def link ngxListenOptions Keyword 2437 hi def link ngxListenOptionsDeprecated Error 2438 2438 2439 2439 let b:current_syntax = "nginx"
Note:
See TracTickets
for help on using tickets.
In 7782:dea93b6dce94/nginx: