summaryrefslogtreecommitdiff
path: root/pygments/lexers/textedit.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 10:49:47 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 10:49:47 +0100
commit2fb8602139617b7ac3e9d14290baac92b5dad969 (patch)
tree464b412ff8081463e2b9ad5523e2dfadba5165d1 /pygments/lexers/textedit.py
parent6098f36d6778f2dbc6f57dcd28003de701850f74 (diff)
downloadpygments-2fb8602139617b7ac3e9d14290baac92b5dad969.tar.gz
Awk: recognize BEGIN/END
Diffstat (limited to 'pygments/lexers/textedit.py')
-rw-r--r--pygments/lexers/textedit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/textedit.py b/pygments/lexers/textedit.py
index 7f412590..af6f02bf 100644
--- a/pygments/lexers/textedit.py
+++ b/pygments/lexers/textedit.py
@@ -62,9 +62,9 @@ class AwkLexer(RegexLexer):
r'length|match|split|sprintf|sub|substr|tolower|toupper|close|'
r'fflush|getline|next|nextfile|print|printf|strftime|systime|'
r'delete|system)\b', Keyword.Reserved),
- (r'(ARGC|ARGIND|ARGV|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS|FILENAME|FNR|FS|'
- r'IGNORECASE|NF|NR|OFMT|OFS|ORFS|RLENGTH|RS|RSTART|RT|'
- r'SUBSEP)\b', Name.Builtin),
+ (r'(ARGC|ARGIND|ARGV|BEGIN|CONVFMT|ENVIRON|END|ERRNO|FIELDWIDTHS|'
+ r'FILENAME|FNR|FS|IGNORECASE|NF|NR|OFMT|OFS|ORFS|RLENGTH|RS|'
+ r'RSTART|RT|SUBSEP)\b', Name.Builtin),
(r'[$a-zA-Z_]\w*', Name.Other),
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
(r'0x[0-9a-fA-F]+', Number.Hex),