puppetlabs / puppet-syntax-vim Goto Github PK
View Code? Open in Web Editor NEWPuppet language syntax highlighting for Vim
License: Other
Puppet language syntax highlighting for Vim
License: Other
THIS PLUGIN IS NO LONGER MAINTAINED! PLEASE USE @rodjek's PLUGIN FOUND AT https://github.com/rodjek/vim-puppet To install these files, copy them into ~/.vim, or the relevant system-wide location. To use the ftplugin and indenting, you may need to enable them with "filetype plugin indent on" in your vimrc.
Just wanted to point out that if someone forks this repo, the name loses any contextual meaning immediately.
syntax-vim is totally vague and does not convey that the syntax being defined for vim is puppet related.
I propose that puppet-vim or puppetlabs-vim would be much more appropriate repo names.
Thanks for moving this to a separate repo by the way.
Comments that live inside the parameters section of a parameterized class are not highlighted.
This code snippet can be used to reproduce the issue:
class bar (
# Global parameters:
$ensure = $::bar::params::ensure,
$version = $::bar::params::version,
$roles = $::bar::params::roles,
# Master parameters:
$master_param1 = $::bar::params::master_param1,
$master_param2 = $::bar::params::master_param2,
# Slave parameters:
$slave_param1 = $::bar::params::slave_param1,
$slave_param2 = $::bar::params::slave_param2,
) inherits bar::params {
# Validate global parameters:
validate_re($ensure, '^running$|^stopped$')
validate_re($version, '^present$|^latest$')
validate_array($roles)
# Validate master parameters:
if 'master' in $roles {
validate_bool($master_param1)
validate_bool($master_param2)
}
# Validate slave parameters:
if 'slave' in $roles {
validate_bool($slave_param1)
validate_bool($slave_param2)
}
# Module contention:
$roles.each |$role| {
contain "::${module_name}::install::${role}"
contain "::${module_name}::config::${role}"
contain "::${module_name}::service::${role}"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.