Skip to content

Commit

Permalink
Check for newlines first
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Apr 9, 2012
1 parent 1ca603e commit 9b91da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet_lexer/__init__.py
Expand Up @@ -57,15 +57,15 @@ class PuppetLexer(RegexLexer):
(r'\(', Punctuation, 'paramlist'),
],
'include': [
(r'\n', Text, '#pop'),
(r'[\w:]+', Name.Class),
include('value'),
(r'\n', Text, '#pop'),
(r'\s', Text),
],
'import': [
(r'\n', Text, '#pop'),
(r'[\/\w\.]+', String),
include('value'),
(r'\n', Text, '#pop'),
(r'\s', Text),
],
'case': [
Expand Down

0 comments on commit 9b91da7

Please sign in to comment.