Skip to content

Commit 055874a

Browse files
committed
highlight: use more accurate regexp for numeric literals
1 parent 41e9165 commit 055874a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/yag.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"name": "keyword.operator.yag"
2929
},
3030
{
31-
"match": "\\b\\d+(\\.\\d+)?\\b",
31+
"match": "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])*",
3232
"name": "constant.numeric.yag"
3333
},
3434
{

0 commit comments

Comments
 (0)