summaryrefslogtreecommitdiff
path: root/pygments/lexers/automation.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/automation.py')
-rw-r--r--pygments/lexers/automation.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/lexers/automation.py b/pygments/lexers/automation.py
index 7be1b9a4..a66ceffa 100644
--- a/pygments/lexers/automation.py
+++ b/pygments/lexers/automation.py
@@ -45,7 +45,7 @@ class AutohotkeyLexer(RegexLexer):
include('numbers'),
(r'[a-zA-Z_#@$][\w#@$]*', Name),
(r'\\|\'', Text),
- (r'\`([\,\%\`abfnrtv\-\+;])', String.Escape),
+ (r'\`([,%`abfnrtv\-+;])', String.Escape),
include('garbage'),
],
'incomment': [
@@ -165,7 +165,7 @@ class AutohotkeyLexer(RegexLexer):
'labels': [
# hotkeys and labels
# technically, hotkey names are limited to named keys and buttons
- (r'(^\s*)([^:\s\(\"]+?:{1,2})', bygroups(Text, Name.Label)),
+ (r'(^\s*)([^:\s("]+?:{1,2})', bygroups(Text, Name.Label)),
(r'(^\s*)(::[^:\s]+?::)', bygroups(Text, Name.Label)),
],
'numbers': [
@@ -177,7 +177,7 @@ class AutohotkeyLexer(RegexLexer):
(r'\d+', Number.Integer)
],
'stringescape': [
- (r'\"\"|\`([\,\%\`abfnrtv])', String.Escape),
+ (r'\"\"|\`([,%`abfnrtv])', String.Escape),
],
'strings': [
(r'[^"\n]+', String),
@@ -319,7 +319,7 @@ class AutoItLexer(RegexLexer):
(r'(#comments-start|#cs).*?(#comments-end|#ce)', Comment.Multiline),
(r'[\[\]{}(),;]', Punctuation),
(r'(and|or|not)\b', Operator.Word),
- (r'[\$|@][a-zA-Z_]\w*', Name.Variable),
+ (r'[$|@][a-zA-Z_]\w*', Name.Variable),
(r'!=|==|:=|\.=|<<|>>|[-~+/*%=<>&^|?:!.]', Operator),
include('commands'),
include('labels'),
@@ -329,7 +329,7 @@ class AutoItLexer(RegexLexer):
include('numbers'),
(r'[a-zA-Z_#@$][\w#@$]*', Name),
(r'\\|\'', Text),
- (r'\`([\,\%\`abfnrtv\-\+;])', String.Escape),
+ (r'\`([,%`abfnrtv\-+;])', String.Escape),
(r'_\n', Text), # Line continuation
include('garbage'),
],
@@ -358,7 +358,7 @@ class AutoItLexer(RegexLexer):
(r'\d+', Number.Integer)
],
'stringescape': [
- (r'\"\"|\`([\,\%\`abfnrtv])', String.Escape),
+ (r'\"\"|\`([,%`abfnrtv])', String.Escape),
],
'strings': [
(r'[^"\n]+', String),