Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Support require statement

  • Loading branch information...
commit bbbcbf6fe3ba542e9a2789562f022dc1cd7fa669 1 parent 7b02b06
Tim Sharpe authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  puppet_lexer/__init__.py
2  puppet_lexer/__init__.py
@@ -25,7 +25,7 @@ class PuppetLexer(RegexLexer):
25 25 (r'(::)?([A-Z][\w:]+)+(\s*)(\[)', bygroups(Name.Class, Name.Class, Text, Punctuation), ('type', 'override_name')),
26 26 (r'(@{0,2}[\w:]+)(\s*)(\{)(\s*)', bygroups(Name.Class, Text, Punctuation, Text), ('type', 'namevar')),
27 27 (r'\$(::)?(\w+::)*\w+', Name.Variable, 'var_assign'),
28   - (r'include', Keyword.Namespace, 'include'),
  28 + (r'(include|require)', Keyword.Namespace, 'include'),
29 29 (r'import', Keyword.Namespace, 'import'),
30 30 (r'(\w+)(\()', bygroups(Name.Function, Punctuation), 'function'),
31 31 (r'\s', Text),

0 comments on commit bbbcbf6

Please sign in to comment.
Something went wrong with that request. Please try again.