Welcome! Log In Create A New Profile

Advanced

[nginx] Contrib: vim syntax, default highlighting (ticket #2141).

Maxim Dounin
February 25, 2021 03:48PM
details: https://hg.nginx.org/nginx/rev/dea93b6dce94
branches:
changeset: 7782:dea93b6dce94
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Feb 25 23:42:25 2021 +0300
description:
Contrib: vim syntax, default highlighting (ticket #2141).

Using default highlighting makes it possible to easily overrule
highlighting specified in the syntax file, see ":highlight-default"
in vim help for details.

diffstat:

contrib/vim/syntax/nginx.vim | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)

diffs (49 lines):

diff -r 51e6a665523c -r dea93b6dce94 contrib/vim/syntax/nginx.vim
--- a/contrib/vim/syntax/nginx.vim Sat Feb 20 18:03:04 2021 +0300
+++ b/contrib/vim/syntax/nginx.vim Thu Feb 25 23:42:25 2021 +0300
@@ -2414,26 +2414,26 @@ syn keyword ngxDirectiveThirdParty conta

" highlight

-hi link ngxComment Comment
-hi link ngxParamComment Comment
-hi link ngxListenComment Comment
-hi link ngxVariable Identifier
-hi link ngxVariableString PreProc
-hi link ngxString String
-hi link ngxListenString String
+hi def link ngxComment Comment
+hi def link ngxParamComment Comment
+hi def link ngxListenComment Comment
+hi def link ngxVariable Identifier
+hi def link ngxVariableString PreProc
+hi def link ngxString String
+hi def link ngxListenString String

-hi link ngxBoolean Boolean
-hi link ngxDirectiveBlock Statement
-hi link ngxDirectiveImportant Type
-hi link ngxDirectiveListen Type
-hi link ngxDirectiveControl Keyword
-hi link ngxDirectiveError Constant
-hi link ngxDirectiveDeprecated Error
-hi link ngxDirective Identifier
-hi link ngxDirectiveThirdParty Special
-hi link ngxDirectiveThirdPartyDeprecated Error
+hi def link ngxBoolean Boolean
+hi def link ngxDirectiveBlock Statement
+hi def link ngxDirectiveImportant Type
+hi def link ngxDirectiveListen Type
+hi def link ngxDirectiveControl Keyword
+hi def link ngxDirectiveError Constant
+hi def link ngxDirectiveDeprecated Error
+hi def link ngxDirective Identifier
+hi def link ngxDirectiveThirdParty Special
+hi def link ngxDirectiveThirdPartyDeprecated Error

-hi link ngxListenOptions Keyword
-hi link ngxListenOptionsDeprecated Error
+hi def link ngxListenOptions Keyword
+hi def link ngxListenOptionsDeprecated Error

let b:current_syntax = "nginx"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Contrib: vim syntax, default highlighting (ticket #2141).

Maxim Dounin 253 February 25, 2021 03:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready