mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-10 09:31:00 +00:00
Highlight 0 as a constant number in python3
This commit is contained in:
parent
3fb5a7053f
commit
1e5f8c020e
2 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,7 @@ rules:
|
|||
# parentheses
|
||||
- symbol.brackets: "([(){}]|\\[|\\])"
|
||||
# numbers
|
||||
- constant.number: "\\b[1-9](_?[0-9])*(\\.([0-9](_?[0-9])*)?)?(e[0-9](_?[0-9])*)?\\b" # decimal
|
||||
- constant.number: "\\b[0-9](_?[0-9])*(\\.([0-9](_?[0-9])*)?)?(e[0-9](_?[0-9])*)?\\b" # decimal
|
||||
- constant.number: "\\b0b(_?[01])+\\b" # bin
|
||||
- constant.number: "\\b0o(_?[0-7])+\\b" # oct
|
||||
- constant.number: "\\b0x(_?[0-9a-f])+\\b" # hex
|
||||
|
|
|
|||
Loading…
Reference in a new issue