summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorMakoto Kishimoto <ksmakoto@dd.iij4u.or.jp>2014-04-01 15:00:12 +0900
committerMakoto Kishimoto <ksmakoto@dd.iij4u.or.jp>2014-04-01 15:00:12 +0900
commit948dffaaeae77b83aa3e506495c6a89e5093d869 (patch)
treefdfe270acda388cab36ba3d3aa7b93ce51e9f5c7 /pygments/lexers/other.py
parent88b1dffbcc4624f2759311ac569efc9d2e205969 (diff)
downloadpygments-948dffaaeae77b83aa3e506495c6a89e5093d869.tar.gz
Fix awk lexer. Add "else" keyword and fix recognition of "in" operator.
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py4
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|'