summaryrefslogtreecommitdiff
path: root/ext/vim/syntax
AgeCommit message (Collapse)AuthorFilesLines
2010-08-29Fix #4615 - vim highlighting fails on slashes and colons.Marc Fournier1-3/+3
When a regexp is used in a selector, vim shouldn't choke if more than one slash is found on the same line. This patch also adds support for colons in attribute names.
2010-07-25vim: highlight default parameters in definition/classesMarc Fournier1-1/+1
2010-07-25vim: match collected resources.Marc Fournier1-0/+1
2010-07-25vim: added elsifMarc Fournier1-1/+1
2010-01-30vim: Improve function matching when functions contain ')'Todd Zullinger1-2/+4
This fixes #3017 (VIM syntax highlight for regsubst fails) by converting puppetFunction from a simple keyword to a region. Signed-off-by: Todd Zullinger <tmz@pobox.com>
2010-01-30vim: puppetDefArguments is contained by puppetDefineTodd Zullinger1-1/+1
The argument list for a definition must be contained, otherwise it matches too much text. For example: define test($arg) { $foo = regsubst("$name", '(.*)', '\1') # The parentheses within the above regsubst are matched as part # of puppetDefArguments and the highlighting after is incorrect. } Marking puppetDefArguments as contained by puppetDefine fixes this. Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-09-09vim: match regexp language featuresMarc Fournier1-1/+4
Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
2009-08-09vim: Mark puppetFunction values as containedTodd Zullinger1-1/+1
This prevents 'file' from being highlighted as a function when it is used as a resource. Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-07-29Fix #2429 - vim: class/define/node should only be followed by whitespaceMarc Fournier1-1/+1
Thanks to Charles Duffy for noticing this and providing this patch. Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
2009-06-10vim: several improvements + cleanupMarc Fournier1-20/+38
* added highlighting for different type of keywords: * if/else * undef * puppet function names * parameters passed to "ensure" * unquoted digits * fixed regexps to match resources containing "::", "-" and "_" * handled escaped variables (variable which don't belong to puppet) * removed unused definitions and added comments
2009-06-06Removed extra whitespace from end of linesIan Taylor1-3/+3
2009-05-30vim: Remove another mention of 'site' from syntaxTodd Zullinger1-1/+1
Noticed-by: Marc Fournier <marc.fournier@camptocamp.com> Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-05-30vim: Highlight parameters with 'plusignment' operatorTodd Zullinger1-2/+2
Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-05-30vim: Highlight strings in single quotesTodd Zullinger1-0/+1
Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-05-30vim: Clean up syntax spacingTodd Zullinger1-22/+22
Signed-off-by: Todd Zullinger <tmz@pobox.com>
2009-02-14Removed site from Puppet VIM syntaxJames Turnbull1-1/+1
2009-02-11Fixed #1936 - Added /* */ support to the vim fileJames Turnbull1-0/+1
2007-12-19Updating filetype detection for vim, and changingLuke Kanies1-0/+89
the filestructure for vim files. (#900 and #963)