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

Skip to content

Commit 67eb1e8

Browse files
committed
Match Python 3 octal literals
PEP-3127 for full integer literal syntax
1 parent 0141d44 commit 67eb1e8

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)