summaryrefslogtreecommitdiff
path: root/pygments/lexers/math.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 12:35:45 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 12:35:45 +0100
commit566372919bce8374717f4943815553d8b7068de1 (patch)
treef7d49205ec56418a867d113bd2dfeaea4ec164f2 /pygments/lexers/math.py
parent68a10f38d3814e2292849306a815387c6259ce06 (diff)
downloadpygments-566372919bce8374717f4943815553d8b7068de1.tar.gz
Fix issues found by "make check".
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r--pygments/lexers/math.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index 5f6bb7c8..e9478a36 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -84,7 +84,8 @@ class JuliaLexer(RegexLexer):
(r'`(?s).*?`', String.Backtick),
# chars
- (r"'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,3}|\\u[a-fA-F0-9]{1,4}|\\U[a-fA-F0-9]{1,6}|[^\\\'\n])'", String.Char),
+ (r"'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,3}|\\u[a-fA-F0-9]{1,4}|"
+ r"\\U[a-fA-F0-9]{1,6}|[^\\\'\n])'", String.Char),
# try to match trailing transpose
(r'(?<=[.\w\)\]])\'+', Operator),
@@ -1305,7 +1306,7 @@ class StanLexer(RegexLexer):
filenames = ['*.stan']
_RESERVED = ('for', 'in', 'while', 'repeat', 'until', 'if',
- 'then', 'else', 'true', 'false', 'T',
+ 'then', 'else', 'true', 'false', 'T',
'lower', 'upper', 'print')
_TYPES = ('int', 'real', 'vector', 'simplex', 'ordered', 'row_vector',
@@ -1356,7 +1357,7 @@ class StanLexer(RegexLexer):
# Integer Literals
(r'-?[0-9]+', Number.Integer),
# Assignment operators
- # SLexer makes these tokens Operators.
+ # SLexer makes these tokens Operators.
(r'<-|~', Operator),
# Infix and prefix operators (and = )
(r"\+|-|\.?\*|\.?/|\\|'|=", Operator),