Browse files

Fix #2429 - vim: class/define/node should only be followed by whitespace

Thanks to Charles Duffy for noticing this and providing this patch.

Signed-off-by: Marc Fournier <>
  • Loading branch information...
1 parent 58fdf49 commit d3a2bbd77b36cecb9d3e375ed67d7f41193d47cb @mfournier mfournier committed Jul 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 syntax/puppet.vim
@@ -17,7 +17,7 @@ elseif exists("b:current_syntax")
" match class/definition/node declarations
-syn region puppetDefine start="^\s*\(class\|define\|node\)" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments
+syn region puppetDefine start="^\s*\(class\|define\|node\)\s" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments
syn keyword puppetDefType class define node inherits contained
syn region puppetDefArguments start="(" end=")" contains=puppetArgument
syn match puppetArgument "\w\+" contained

0 comments on commit d3a2bbd

Please sign in to comment.