summaryrefslogtreecommitdiff
path: root/pygments/lexers/esoteric.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/esoteric.py')
-rw-r--r--pygments/lexers/esoteric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/esoteric.py b/pygments/lexers/esoteric.py
index 2efc057b..7a026aed 100644
--- a/pygments/lexers/esoteric.py
+++ b/pygments/lexers/esoteric.py
@@ -63,7 +63,7 @@ class BefungeLexer(RegexLexer):
tokens = {
'root': [
(r'[0-9a-f]', Number),
- (r'[\+\*/%!`-]', Operator), # Traditional math
+ (r'[+*/%!`-]', Operator), # Traditional math
(r'[<>^v?\[\]rxjk]', Name.Variable), # Move, imperatives
(r'[:\\$.,n]', Name.Builtin), # Stack ops, imperatives
(r'[|_mw]', Keyword),
@@ -103,7 +103,7 @@ class RedcodeLexer(RegexLexer):
# Identifiers
(r'\b(%s)\b' % '|'.join(opcodes), Name.Function),
(r'\b(%s)\b' % '|'.join(modifiers), Name.Decorator),
- (r'[A-Za-z_][A-Za-z_0-9]+', Name),
+ (r'[A-Za-z_]\w+', Name),
# Operators
(r'[-+*/%]', Operator),
(r'[#$@<>]', Operator), # mode