Skip to content

Commit

Permalink
Add support for unsigned integer literals in TextMate grammar (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-stewart committed Apr 13, 2023
1 parent a69e1ac commit a10c947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammars/Kotlin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,11 @@
]
},
"decimal-literal": {
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(L|F|f)?\\b",
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(u|U)?(L|F|f)?\\b",
"name": "constant.numeric.decimal.kotlin"
},
"hex-literal": {
"match": "0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*",
"match": "0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*(u|U)?",
"name": "constant.numeric.hex.kotlin"
},
"binary-literal": {
Expand Down

0 comments on commit a10c947

Please sign in to comment.