summaryrefslogtreecommitdiff
path: root/pygments/lexers/agile.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/agile.py
parent8e4acf008bbe4233bd075d2f25c7fbafd861f710 (diff)
downloadpygments-17d97617f360f8de37dad25a67b1424f15005d8a.tar.gz
Add token type Number.Bin
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r--pygments/lexers/agile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 0c2d02ac..576f44ed 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -1242,7 +1242,7 @@ class CrocLexer(RegexLexer):
Number.Float),
# IntegerLiteral
# -- Binary
- (r'0[bB][01][01_]*', Number),
+ (r'0[bB][01][01_]*', Number.Bin),
# -- Hexadecimal
(r'0[xX][0-9a-fA-F][0-9a-fA-F_]*', Number.Hex),
# -- Decimal
@@ -1740,8 +1740,8 @@ class FactorLexer(RegexLexer):
(r'[+-]?\d(?:[\d,]*\d)?(?:[eE][+-]?\d+)?\s', Number),
(r'0x[a-fA-F\d](?:[a-fA-F\d,]*[a-fA-F\d])?(?:p\d([\d,]*\d)?)?\s', Number),
(r'NAN:\s+[a-fA-F\d](?:[a-fA-F\d,]*[a-fA-F\d])?(?:p\d([\d,]*\d)?)?\s', Number),
- (r'0b[01]+\s', Number),
- (r'0o[0-7]+\s', Number),
+ (r'0b[01]+\s', Number.Bin),
+ (r'0o[0-7]+\s', Number.Oct),
(r'(?:\d([\d,]*\d)?)?\+\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\s', Number),
(r'(?:\-\d([\d,]*\d)?)?\-\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\s', Number),