]> granicus.if.org Git - icinga2/commitdiff
Add missing keywords in the syntax highlighting files
authorGunnar Beutner <gunnar@beutner.name>
Mon, 16 Mar 2015 08:59:26 +0000 (09:59 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 16 Mar 2015 09:07:58 +0000 (10:07 +0100)
fixes #8757

tools/syntax/nano/icinga2.nanorc
tools/syntax/vim/syntax/icinga2.vim

index 2beb1dc9b57595a27981938bc11a98e5921bfba0..144cab3c8b0a3b449a72f7b71ab14f4c34785e6e 100644 (file)
@@ -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"
index b93279edbe91e4a1e696a262306aa01586145eaf..7c78c7c1739eddee62c4c591fb49a1405ba70e1d 100644 (file)
@@ -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