This prevents 'file' from being highlighted as a function when it is
used as a resource.

Signed-off-by: Todd Zullinger <[email protected]>
---

I think this was just a small oversight from Marc's recent updating of
the vim syntax file.  If it was intended, I'm sure Marc will correct
me. :)

James, this is available at git://jet.mox.net/~tmz/puppet.git, on the
feature/master/vim-function-highlight-fix branch.

 ext/vim/syntax/puppet.vim |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/vim/syntax/puppet.vim b/ext/vim/syntax/puppet.vim
index 6c092e6..095e48e 100644
--- a/ext/vim/syntax/puppet.vim
+++ b/ext/vim/syntax/puppet.vim
@@ -51,7 +51,7 @@ syn match   puppetParamDigits   "[0-9]\+"
 " match 'template' in 'content => template("...")'
 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      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\+}"
-- 
1.6.4

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you want to travel around the world and be invited to speak at a
lot of different places, just write a Unix operating system.
    -- Linus Torvalds


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to