summaryrefslogtreecommitdiff
path: root/pygments/lexers/dylan.py
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2019-03-06 18:58:58 +0000
committerAnteru <bitbucket@ca.sh13.net>2019-03-06 18:58:58 +0000
commit336dc9f7200909200036c80685f9703f40ecd238 (patch)
treea18e33f30ede25ebfc833ed661edb88014114484 /pygments/lexers/dylan.py
parentb17601caa391fc3587960e160c57eb96c2dde3e0 (diff)
parentbce3a972a54517884bcbd45e09e0d3e911fe53d7 (diff)
downloadpygments-git-336dc9f7200909200036c80685f9703f40ecd238.tar.gz
Merged in roskakori/pygments-vbscript (pull request #673)
Added lexer for VBScript
Diffstat (limited to 'pygments/lexers/dylan.py')
-rw-r--r--pygments/lexers/dylan.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/dylan.py b/pygments/lexers/dylan.py
index 600a78e5..30318f38 100644
--- a/pygments/lexers/dylan.py
+++ b/pygments/lexers/dylan.py
@@ -5,7 +5,7 @@
Lexers for the Dylan language.
- :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -179,10 +179,10 @@ class DylanLexer(RegexLexer):
(valid_name + ':', Keyword),
# class names
- (r'<' + valid_name + '>', Name.Class),
+ ('<' + valid_name + '>', Name.Class),
# define variable forms.
- (r'\*' + valid_name + '\*', Name.Variable.Global),
+ (r'\*' + valid_name + r'\*', Name.Variable.Global),
# define constant forms.
(r'\$' + valid_name, Name.Constant),
@@ -260,7 +260,7 @@ class DylanConsoleLexer(Lexer):
mimetypes = ['text/x-dylan-console']
_line_re = re.compile('.*?\n')
- _prompt_re = re.compile('\?| ')
+ _prompt_re = re.compile(r'\?| ')
def get_tokens_unprocessed(self, text):
dylexer = DylanLexer(**self.options)