From: Gunnar Beutner Date: Mon, 16 Mar 2015 08:59:26 +0000 (+0100) Subject: Add missing keywords in the syntax highlighting files X-Git-Tag: v2.3.3~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b18e1b674a44ee7c96d97e97be253e9dea4aa12;p=icinga2 Add missing keywords in the syntax highlighting files fixes #8757 --- diff --git a/tools/syntax/nano/icinga2.nanorc b/tools/syntax/nano/icinga2.nanorc index 2beb1dc9b..144cab3c8 100644 --- a/tools/syntax/nano/icinga2.nanorc +++ b/tools/syntax/nano/icinga2.nanorc @@ -36,7 +36,7 @@ icolor red "(^|^\s+)(vars\.\w+)" ## keywords -icolor red "(^|^\s+)|(icinga2Keyword|template|const|import|include|include_recursive|var|function)\s+" +icolor red "(^|^\s+)|(icinga2Keyword|template|const|import|include|include_recursive|var|function|return|to|use|locals|globals|this)\s+" ## Assign conditions icolor magenta "(assign|ignone)[ \t]+where" diff --git a/tools/syntax/vim/syntax/icinga2.vim b/tools/syntax/vim/syntax/icinga2.vim index b93279edb..7c78c7c17 100644 --- a/tools/syntax/vim/syntax/icinga2.vim +++ b/tools/syntax/vim/syntax/icinga2.vim @@ -78,7 +78,7 @@ syn match icinga2ObjAttr contained "\(vars.\w\+\)" " keywords -syn keyword icinga2Keyword template const import include include_recursive var function +syn keyword icinga2Keyword template const import include include_recursive var function return to use locals globals this " Assign conditions