Skip to content

Commit 2558364

Browse files
committed
Updated number captures
1 parent 65b1936 commit 2558364

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,13 +1569,13 @@
15691569
"include": "#boolean"
15701570
},
15711571
{
1572-
"include": "#string"
1572+
"include": "#numbers"
15731573
},
15741574
{
1575-
"include": "#doublequoted-strings"
1575+
"include": "#string"
15761576
},
15771577
{
1578-
"include": "#numbers"
1578+
"include": "#doublequoted-strings"
15791579
},
15801580
{
15811581
"include": "#inline-comment"
@@ -1653,7 +1653,7 @@
16531653
]
16541654
},
16551655
"numbers": {
1656-
"begin": "(^[ \\t]+)?(?=-?\\d)",
1656+
"begin": "(^[ \\t]+)?(?=(-|\\.){0,2}\\d)",
16571657
"beginCaptures": {
16581658
"1": {
16591659
"name": "punctuation.whitespace.ini"
@@ -1667,7 +1667,7 @@
16671667
]
16681668
},
16691669
"double": {
1670-
"match": "-?\\d[\\.\\d%fF]*( -?\\d[\\.\\d%fF]*)*",
1670+
"match": "-?( |\\d+\\.|\\.|\\d+|\\d+\\.\\d+|0|%)+",
16711671
"name": "constant.numeric.ini"
16721672
},
16731673
"boolean": {

0 commit comments

Comments
 (0)