Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support setting resource defaults

  • Loading branch information...
commit 32c930dac8aeaa3cdc2dd4ef363133e9b529fbff 1 parent 79565c3
@rodjek authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  puppet_lexer/__init__.py
View
1  puppet_lexer/__init__.py
@@ -20,6 +20,7 @@ class PuppetLexer(RegexLexer):
(r'(else)(\s*)(\{)', bygroups(Keyword.Reserved, Text, Punctuation), 'block'),
(r'case', Keyword.Reserved, ('case', 'conditional')),
(r'(::)?([A-Z][\w:]+)+(\s*)(<{1,2}\|)', bygroups(Name.Class, Name.Class, Text, Punctuation), 'spaceinvader'),
+ (r'(::)?([A-Z][\w:]+)+(\s*)(\{)', bygroups(Name.Class, Name.Class, Text, Punctuation), 'type'),
(r'(@{0,2}[\w:]+)(\s*)(\{)(\s*)', bygroups(Name.Class, Text, Punctuation, Text), ('type', 'namevar')),
(r'\$(::)?(\w+::)*\w+', Name.Variable, 'var_assign'),
(r'(include)(\s+)', bygroups(Keyword.Namespace, Text), 'include'),
Please sign in to comment.
Something went wrong with that request. Please try again.