Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion syntax/puppet.vim
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ syn match puppetString "/[^/]*/"
syn match puppetNotVariable "\\$\w\+" contained
syn match puppetNotVariable "\\${\w\+}" contained

syn keyword puppetKeyword import inherits include
syn keyword puppetKeyword inherits include
syn keyword puppetControl case default if else elsif
syn keyword puppetSpecial true false undef

" warn user of bad/deprecated keywords
syn keyword puppetKeywordBad import

" comments last overriding everything else
syn match puppetComment "\s*#.*$" contains=puppetTodo
syn region puppetComment start="/\*" end="\*/" contains=puppetTodo extend
Expand All @@ -91,6 +94,7 @@ if version >= 508 || !exists("did_puppet_syn_inits")
HiLink puppetVariable Identifier
HiLink puppetType Identifier
HiLink puppetKeyword Define
HiLink puppetKeywordBad Error
HiLink puppetComment Comment
HiLink puppetString String
HiLink puppetParamKeyword String
Expand Down