adding vim syntax stuff

git-svn-id: https://reductivelabs.com/svn/puppet/trunk@875 980ebf18-57e1-0310-9a29-db15c13687c0
updating syntax matcher to highlight dollar signs in prototypes

git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1884 980ebf18-57e1-0310-9a29-db15c13687c0
Updating filetype detection for vim, and changing
the filestructure for vim files. (#900 and #963)
Fixed #1936 - Added /* */ support to the vim file
Removed site from Puppet VIM syntax
vim: Clean up syntax spacing

Signed-off-by: Todd Zullinger <tmz@pobox.com>
vim: Highlight strings in single quotes

Signed-off-by: Todd Zullinger <tmz@pobox.com>
vim: Highlight parameters with 'plusignment' operator

Signed-off-by: Todd Zullinger <tmz@pobox.com>
vim: Remove another mention of 'site' from syntax

Noticed-by: Marc Fournier <marc.fournier@camptocamp.com>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Removed extra whitespace from end of lines
vim: several improvements + cleanup

 * 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
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 <marc.fournier@camptocamp.com>
vim: Mark puppetFunction values as contained

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

Signed-off-by: Todd Zullinger <tmz@pobox.com>
vim: match regexp language features

Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
vim: puppetDefArguments is contained by puppetDefine

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>
vim: Improve function matching when functions contain ')'

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>
vim: added elsif
vim: match collected resources.
vim: highlight default parameters in definition/classes
Fix #4615 - vim highlighting fails on slashes and colons.

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.