diff options
author | Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp> | 2014-04-01 15:00:12 +0900 |
---|---|---|
committer | Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp> | 2014-04-01 15:00:12 +0900 |
commit | 948dffaaeae77b83aa3e506495c6a89e5093d869 (patch) | |
tree | fdfe270acda388cab36ba3d3aa7b93ce51e9f5c7 | |
parent | 88b1dffbcc4624f2759311ac569efc9d2e205969 (diff) | |
download | pygments-948dffaaeae77b83aa3e506495c6a89e5093d869.tar.gz |
Fix awk lexer. Add "else" keyword and fix recognition of "in" operator.
-rw-r--r-- | pygments/lexers/other.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 1b8ce892..80b06b28 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -2528,11 +2528,11 @@ class AwkLexer(RegexLexer): 'root': [ (r'^(?=\s|/)', Text, 'slashstartsregex'), include('commentsandwhitespace'), - (r'\+\+|--|\|\||&&|in|\$|!?~|' + (r'\+\+|--|\|\||&&|in\b|\$|!?~|' r'(\*\*|[-<>+*%\^/!=])=?', Operator, 'slashstartsregex'), (r'[{(\[;,]', Punctuation, 'slashstartsregex'), (r'[})\].]', Punctuation), - (r'(break|continue|do|while|exit|for|if|' + (r'(break|continue|do|while|exit|for|if|else|' r'return)\b', Keyword, 'slashstartsregex'), (r'function\b', Keyword.Declaration, 'slashstartsregex'), (r'(atan2|cos|exp|int|log|rand|sin|sqrt|srand|gensub|gsub|index|' |