summaryrefslogtreecommitdiff
path: root/pygments/lexers/asm.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/asm.py
parent8e4acf008bbe4233bd075d2f25c7fbafd861f710 (diff)
downloadpygments-17d97617f360f8de37dad25a67b1424f15005d8a.tar.gz
Add token type Number.Bin
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r--pygments/lexers/asm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py
index 35092f52..f995264c 100644
--- a/pygments/lexers/asm.py
+++ b/pygments/lexers/asm.py
@@ -353,7 +353,7 @@ class NasmLexer(RegexLexer):
(string, String),
(hexn, Number.Hex),
(octn, Number.Oct),
- (binn, Number),
+ (binn, Number.Bin),
(floatn, Number.Float),
(decn, Number.Integer),
include('punctuation'),
@@ -422,7 +422,8 @@ class Ca65Lexer(RegexLexer):
(r'"[^"\n]*.', String),
(r"'[^'\n]*.", String.Char),
(r'\$[0-9a-f]+|[0-9a-f]+h\b', Number.Hex),
- (r'\d+|%[01]+', Number.Integer),
+ (r'\d+', Number.Integer),
+ (r'%[01]+', Number.Bin),
(r'[#,.:()=]', Punctuation),
(r'[a-z_.@$][\w.@$]*', Name),
]