[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1456-g2f0b1e5
James Turnbull
james at lovedthanlost.net
Tue Oct 27 17:04:36 UTC 2009
The following commit has been merged in the upstream branch:
commit c2e26b9bb28ebcb8e07822015f99bd6a971b51c8
Author: Marc Fournier <marc.fournier at camptocamp.com>
Date: Tue Sep 8 23:44:56 2009 +0200
vim: match regexp language features
Signed-off-by: Marc Fournier <marc.fournier at camptocamp.com>
diff --git a/ext/vim/syntax/puppet.vim b/ext/vim/syntax/puppet.vim
index 095e48e..eb62b64 100644
--- a/ext/vim/syntax/puppet.vim
+++ b/ext/vim/syntax/puppet.vim
@@ -17,7 +17,7 @@ elseif exists("b:current_syntax")
endif
" match class/definition/node declarations
-syn region puppetDefine start="^\s*\(class\|define\|node\)\s" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments
+syn region puppetDefine start="^\s*\(class\|define\|node\)\s" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments,puppetNodeRe
syn keyword puppetDefType class define node inherits contained
syn region puppetDefArguments start="(" end=")" contains=puppetArgument
syn match puppetArgument "\w\+" contained
@@ -25,6 +25,7 @@ syn match puppetArgument "\$\w\+" contained
syn match puppetArgument "'[^']+'" contained
syn match puppetArgument '"[^"]+"' contained
syn match puppetDefName "\w\+" contained
+syn match puppetNodeRe "/.*/" contained
" match 'foo' in 'class foo { ...'
" match 'foo::bar' in 'class foo::bar { ...'
@@ -60,6 +61,7 @@ syn match puppetVariable "${\w\+}"
" don't match variables if preceded by a backslash.
syn region puppetString start=+'+ skip=+\\\\\|\\'+ end=+'+
syn region puppetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=puppetVariable,puppetNotVariable
+syn match puppetString "/.*/"
syn match puppetNotVariable "\\$\w\+" contained
syn match puppetNotVariable "\\${\w\+}" contained
@@ -97,6 +99,7 @@ if version >= 508 || !exists("did_puppet_syn_inits")
HiLink puppetControl Statement
HiLink puppetDefType Define
HiLink puppetDefName Type
+ HiLink puppetNodeRe Type
HiLink puppetTypeName Statement
HiLink puppetTypeDefault Type
HiLink puppetParamName Identifier
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list