diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/python/Pygments/py3/pygments/lexers/automation.py | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/automation.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/automation.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/automation.py b/contrib/python/Pygments/py3/pygments/lexers/automation.py index 92612bb3b6..7b03e39a06 100644 --- a/contrib/python/Pygments/py3/pygments/lexers/automation.py +++ b/contrib/python/Pygments/py3/pygments/lexers/automation.py @@ -4,7 +4,7 @@ Lexers for automation scripting languages. - :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -22,7 +22,7 @@ class AutohotkeyLexer(RegexLexer): .. versionadded:: 1.4 """ name = 'autohotkey' - aliases = ['autohotkey', 'ahk'] + aliases = ['autohotkey', 'ahk'] filenames = ['*.ahk', '*.ahkl'] mimetypes = ['text/x-autohotkey'] @@ -326,7 +326,7 @@ class AutoItLexer(RegexLexer): include('builtInFunctions'), include('builtInMarcros'), (r'"', String, combined('stringescape', 'dqs')), - (r"'", String, 'sqs'), + (r"'", String, 'sqs'), include('numbers'), (r'[a-zA-Z_#@$][\w#@$]*', Name), (r'\\|\'', Text), @@ -368,11 +368,11 @@ class AutoItLexer(RegexLexer): (r'"', String, '#pop'), include('strings') ], - 'sqs': [ - (r'\'\'|\`([,%`abfnrtv])', String.Escape), - (r"'", String, '#pop'), - (r"[^'\n]+", String) - ], + 'sqs': [ + (r'\'\'|\`([,%`abfnrtv])', String.Escape), + (r"'", String, '#pop'), + (r"[^'\n]+", String) + ], 'garbage': [ (r'[^\S\n]', Text), ], |