Code Monkey home page Code Monkey logo

puppet-syntax-vim's Introduction

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.

puppet-syntax-vim's People

Contributors

jamtur01 avatar jhelwig avatar lak avatar mikaelsmith avatar tmzullinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-syntax-vim's Issues

repo name

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 inside parameters section are not highlighted

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}"
    }   
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.