Skip to content

Commit 7c70f09

Browse files
committed
要先匹配浮点数再匹配整数
1 parent 334e754 commit 7c70f09

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@
5656
}
5757
]
5858
},
59-
{
60-
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
61-
"name": "constant.numeric.integer.hexadecimal.lua"
62-
},
6359
{
6460
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]+)?([eE]-?\\d*)?([pP][-+]\\d+)?",
6561
"name": "constant.numeric.float.hexadecimal.lua"
6662
},
6763
{
68-
"match": "(?<![\\w\\d.])\\d+(?![pPeE.0-9])",
69-
"name": "constant.numeric.integer.lua"
64+
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
65+
"name": "constant.numeric.integer.hexadecimal.lua"
7066
},
7167
{
7268
"match": "(?<![\\w\\d.])\\d+(\\.\\d+)?([eE]-?\\d*)?",
7369
"name": "constant.numeric.float.lua"
7470
},
71+
{
72+
"match": "(?<![\\w\\d.])\\d+(?![pPeE.0-9])",
73+
"name": "constant.numeric.integer.lua"
74+
},
7575
{
7676
"begin": "'",
7777
"beginCaptures": {

0 commit comments

Comments
 (0)