Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
vim: Mark puppetFunction values as contained
Browse files Browse the repository at this point in the history
This prevents 'file' from being highlighted as a function when it is
used as a resource.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
  • Loading branch information
tmzullinger authored and jamtur01 committed Aug 9, 2009
1 parent d3a2bbd commit 78c1f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/puppet.vim
Expand Up @@ -51,7 +51,7 @@ syn match puppetParamDigits "[0-9]\+"
" match 'template' in 'content => template("...")' " match 'template' in 'content => template("...")'
syn match puppetParam "\w\+\s*[=+]>\s*\w\+\s*(" contains=puppetFunction,puppetParamName syn match puppetParam "\w\+\s*[=+]>\s*\w\+\s*(" contains=puppetFunction,puppetParamName
syn keyword puppetFunction debug info notice warning err alert emerg crit syn keyword puppetFunction debug info notice warning err alert emerg crit
syn keyword puppetFunction sprintf template fail tagged include generate search file tag versioncmp fqdn_rand realize split defined regsubst sha1 inline_template syn keyword puppetFunction sprintf template fail tagged include generate search file tag versioncmp fqdn_rand realize split defined regsubst sha1 inline_template contained


syn match puppetVariable "$\w\+" syn match puppetVariable "$\w\+"
syn match puppetVariable "${\w\+}" syn match puppetVariable "${\w\+}"
Expand Down

0 comments on commit 78c1f1a

Please sign in to comment.