Skip to content
Browse files

Check for newlines first

  • Loading branch information...
1 parent 1ca603e commit 9b91da752d25a34b9a7d3899ce098f412f2fde5c @rodjek committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 puppet_lexer/__init__.py
View
4 puppet_lexer/__init__.py
@@ -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': [

0 comments on commit 9b91da7

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