Skip to content

Syntax hightlight improvements for class definitions#12

Merged
petems merged 2 commits intorussCloak:masterfrom
christopher-hopper:syntax_hightlight_improvements
May 12, 2015
Merged

Syntax hightlight improvements for class definitions#12
petems merged 2 commits intorussCloak:masterfrom
christopher-hopper:syntax_hightlight_improvements

Conversation

@christopher-hopper
Copy link
Contributor

These changes improve syntax highlighting for class definitions in Puppet by highlighting:

  • variables, strings, numbers and constants used in class parameter default values
  • constants used in code for classes and nodes

The following screen captures illustrate the intended results of this change.

Before Improvements

selection_018

After Improvements

selection_017

Inside a node or class definition, ensure that contants are highlighted
when used.
Ensure that the following elements are highlighted when used in the
definition of class paramter default values:
- variables
- constants
- strings
- numbers
@mmolnar
Copy link

mmolnar commented Mar 4, 2015

Could you also fix the highlighting if there are braces as default parameters?
Thank you.

petems added a commit that referenced this pull request May 12, 2015
…ovements

Syntax hightlight improvements for class definitions
@petems petems merged commit 9c63b6a into russCloak:master May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants