diff options
author | Paulo Moura <pmoura@logtalk.org> | 2014-09-12 18:11:17 +0000 |
---|---|---|
committer | Paulo Moura <pmoura@logtalk.org> | 2014-09-12 18:11:17 +0000 |
commit | 7b7726d637d561fd35cea67c23e70393cf85e86a (patch) | |
tree | d25e38482a689740bd360215d3c174baa608cbd1 /pygments/lexers/other.py | |
parent | 1102bae11e1dc83f3ad73e9035e365f89124df62 (diff) | |
download | pygments-7b7726d637d561fd35cea67c23e70393cf85e86a.tar.gz |
Add more specific number types for binary, octal, and hexadecimal syntaxes.
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r-- | pygments/lexers/other.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index e70f194b..9e000cc6 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -509,9 +509,9 @@ 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'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), # Variables (r'([A-Z_][a-zA-Z0-9_]*)', Name.Variable), |