summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Nolta <mike@nolta.net>2012-11-21 16:19:25 -0500
committerMike Nolta <mike@nolta.net>2012-11-21 16:19:25 -0500
commit43ba70b00e97712c9e5c0af2174977c547ef495d (patch)
tree3496ec2fd13e8a281226c0bc7efcd6b6c0eab137
parent60f6c4a781b03dade3b0e58956ecefa4330e3e0e (diff)
downloadpygments-43ba70b00e97712c9e5c0af2174977c547ef495d.tar.gz
JuliaLexer: add float32 literals
-rw-r--r--pygments/lexers/math.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index 0e78bb49..5e8461da 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -97,8 +97,8 @@ class JuliaLexer(RegexLexer):
(r'[a-zA-Z_][a-zA-Z0-9_]*', Name),
# numbers
- (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
- (r'\d+[eE][+-]?[0-9]+', Number.Float),
+ (r'(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?', Number.Float),
+ (r'\d+[eEf][+-]?[0-9]+', Number.Float),
(r'0b[01]+', Number.Binary),
(r'0o[0-7]+', Number.Oct),
(r'0x[a-fA-F0-9]+', Number.Hex),