diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-22 18:18:45 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-04-22 18:18:45 -0400 |
commit | 24d94c8e533e3403006e7b353b1c8c49264da7cf (patch) | |
tree | baf098ba1faa54393732a79af268693714cb63ef /pygments | |
parent | 6dfb3ff03b221365d737890797945c847b35341f (diff) | |
download | pygments-24d94c8e533e3403006e7b353b1c8c49264da7cf.tar.gz |
Add support for boolean number syntax
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/compiled.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 3b73a219..2dc2a619 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -1384,6 +1384,7 @@ def objective(baselexer): tokens = { 'statements': [ (r'@"', String, 'string'), + (r'@(YES|NO)', Number), (r"@'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char), (r'@(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[lL]?', Number.Float), (r'@(\d+\.\d*|\.\d+|\d+[fF])[fF]?', Number.Float), |