Permalink
Browse files

Support require statement

  • Loading branch information...
1 parent 7b02b06 commit bbbcbf6fe3ba542e9a2789562f022dc1cd7fa669 @rodjek committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 puppet_lexer/__init__.py
View
2 puppet_lexer/__init__.py
@@ -25,7 +25,7 @@ class PuppetLexer(RegexLexer):
(r'(::)?([A-Z][\w:]+)+(\s*)(\[)', bygroups(Name.Class, Name.Class, Text, Punctuation), ('type', 'override_name')),
(r'(@{0,2}[\w:]+)(\s*)(\{)(\s*)', bygroups(Name.Class, Text, Punctuation, Text), ('type', 'namevar')),
(r'\$(::)?(\w+::)*\w+', Name.Variable, 'var_assign'),
- (r'include', Keyword.Namespace, 'include'),
+ (r'(include|require)', Keyword.Namespace, 'include'),
(r'import', Keyword.Namespace, 'import'),
(r'(\w+)(\()', bygroups(Name.Function, Punctuation), 'function'),
(r'\s', Text),

0 comments on commit bbbcbf6

Please sign in to comment.