summaryrefslogtreecommitdiff
path: root/pygments/lexers/compiled.py
diff options
context:
space:
mode:
authorThomas Van Doren <thomas.vandoren@gmail.com>2014-09-09 10:46:44 -0700
committerThomas Van Doren <thomas.vandoren@gmail.com>2014-09-09 10:46:44 -0700
commitb966709650bba050ea9e173a531775af8c5f1c7e (patch)
tree4b5ec2ff20722db00787309e2d5c850e0f41ec28 /pygments/lexers/compiled.py
parent99f3ac776661e5e2accd449f0020f624dbeaaf06 (diff)
downloadpygments-b966709650bba050ea9e173a531775af8c5f1c7e.tar.gz
Parse octal ints before regular ints
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r--pygments/lexers/compiled.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 4249da92..79790725 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -3946,10 +3946,10 @@ class ChapelLexer(RegexLexer):
(r'0[bB][0-1]+', Number.Bin),
# -- hex
(r'0[xX][0-9a-fA-F]+', Number.Hex),
- # -- decimal
- (r'[0-9]+', Number.Integer),
# -- octal
(r'0[oO][0-7]+', Number.Oct),
+ # -- decimal
+ (r'[0-9]+', Number.Integer),
# strings
(r'["\'](\\\\|\\"|[^"\'])*["\']', String),