Permalink
Browse files

Support setting resource defaults

  • Loading branch information...
1 parent 79565c3 commit 32c930dac8aeaa3cdc2dd4ef363133e9b529fbff @rodjek committed Apr 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 puppet_lexer/__init__.py
View
@@ -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'),

0 comments on commit 32c930d

Please sign in to comment.