Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support require statement

  • Loading branch information...
commit bbbcbf6fe3ba542e9a2789562f022dc1cd7fa669 1 parent 7b02b06
Tim Sharpe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  puppet_lexer/__init__.py
2  puppet_lexer/__init__.py
View
@@ -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),
Please sign in to comment.
Something went wrong with that request. Please try again.