Skip to content
Browse files

Add regex operators

  • Loading branch information...
1 parent 6004330 commit 797b09bcd3a3c60f72f2012e4e912916e213d0f8 @rodjek committed Apr 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 puppet_lexer/__init__.py
View
3 puppet_lexer/__init__.py
@@ -55,7 +55,7 @@ class PuppetLexer(RegexLexer):
(r'(true|false)', Literal),
],
'operators': [
- (r'(==|\*|-|\+|<<|>>|!=|!|>=|<=|<|>|and|or|in)', Operator),
+ (r'(==|=~|\*|-|\+|<<|>>|!=|!~|!|>=|<=|<|>|and|or|in)', Operator),
],
'conditional': [
include('value'),
@@ -114,6 +114,7 @@ class PuppetLexer(RegexLexer):
(r'\[', Punctuation, 'array'),
(r',', Punctuation, '#pop'),
(r';', Punctuation, '#pop'),
+ (r'\s', Text, '#pop'),
],
'array': [
include('value'),

0 comments on commit 797b09b

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