Skip to content

Commit a10c947

Browse files
authored
Add support for unsigned integer literals in TextMate grammar (#453)
1 parent a69e1ac commit a10c947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/Kotlin.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,11 @@
503503
]
504504
},
505505
"decimal-literal": {
506-
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(L|F|f)?\\b",
506+
"match": "\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(u|U)?(L|F|f)?\\b",
507507
"name": "constant.numeric.decimal.kotlin"
508508
},
509509
"hex-literal": {
510-
"match": "0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*",
510+
"match": "0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*(u|U)?",
511511
"name": "constant.numeric.hex.kotlin"
512512
},
513513
"binary-literal": {

0 commit comments

Comments
 (0)