diff options
author | David Corbett <corbett.dav@husky.neu.edu> | 2014-05-19 18:27:42 -0400 |
---|---|---|
committer | David Corbett <corbett.dav@husky.neu.edu> | 2014-05-19 18:27:42 -0400 |
commit | 17d97617f360f8de37dad25a67b1424f15005d8a (patch) | |
tree | 07e69f1007887aaa311e0fd8d5fbb40408f81506 /pygments/lexers/asm.py | |
parent | 8e4acf008bbe4233bd075d2f25c7fbafd861f710 (diff) | |
download | pygments-17d97617f360f8de37dad25a67b1424f15005d8a.tar.gz |
Add token type Number.Bin
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r-- | pygments/lexers/asm.py | 5 |
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), ] |