Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59d4519

Browse files
committed
Merge pull request atom#53 from nicktimko/python-3-octals
Match Python 3 octal literals
2 parents 0141d44 + 67eb1e8 commit 59d4519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/python.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
'name': 'constant.numeric.integer.hexadecimal.python'
4545
}
4646
{
47-
'match': '\\b(?i:(0[0-7]+)L)'
47+
'match': '\\b(?i:(0[oO]?[0-7]+)L)'
4848
'name': 'constant.numeric.integer.long.octal.python'
4949
}
5050
{
51-
'match': '\\b(0[0-7]+)'
51+
'match': '\\b(0[oO]?[0-7]+)'
5252
'name': 'constant.numeric.integer.octal.python'
5353
}
5454
{

0 commit comments

Comments
 (0)