summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorDavid Corbett <corbett.dav@husky.neu.edu>2014-05-19 18:27:42 -0400
committerDavid Corbett <corbett.dav@husky.neu.edu>2014-05-19 18:27:42 -0400
commit17d97617f360f8de37dad25a67b1424f15005d8a (patch)
tree07e69f1007887aaa311e0fd8d5fbb40408f81506 /pygments/lexers/other.py
parent8e4acf008bbe4233bd075d2f25c7fbafd861f710 (diff)
downloadpygments-17d97617f360f8de37dad25a67b1424f15005d8a.tar.gz
Add token type Number.Bin
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 0c4753ad..c02f048c 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -509,10 +509,10 @@ class LogtalkLexer(RegexLexer):
(r'\s+', Text),
# Numbers
(r"0'.", Number),
- (r'0b[01]+', Number),
- (r'0o[0-7]+', Number),
- (r'0x[0-9a-fA-F]+', Number),
- (r'\d+\.?\d*((e|E)(\+|-)?\d+)?', Number),
+ (r'0b[01]+', Number.Bin),
+ (r'0o[0-7]+', Number.Oct),
+ (r'0x[0-9a-fA-F]+', Number.Hex),
+ (r'\d+\.?\d*((e|E)(\+|-)?\d+)?', Number.Float),
# Variables
(r'([A-Z_]\w*)', Name.Variable),
# Event handlers
@@ -670,10 +670,10 @@ class LogtalkLexer(RegexLexer):
r'(?=[(])', Keyword),
# Numbers
(r"0'.", Number),
- (r'0b[01]+', Number),
- (r'0o[0-7]+', Number),
- (r'0x[0-9a-fA-F]+', Number),
- (r'\d+\.?\d*((e|E)(\+|-)?\d+)?', Number),
+ (r'0b[01]+', Number.Bin),
+ (r'0o[0-7]+', Number.Oct),
+ (r'0x[0-9a-fA-F]+', Number.Hex),
+ (r'\d+\.?\d*((e|E)(\+|-)?\d+)?', Number.Float),
# Variables
(r'([A-Z_]\w*)', Name.Variable),
# Atoms