Skip to content

Commit 19ce9ff

Browse files
committed
Update syntaxes for ini.tmLanguage.json
1 parent 5f9effe commit 19ce9ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syntaxes/ini.tmLanguage.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
]
436436
},
437437
"assignment": {
438-
"begin": "(^[ \\t]+)?([a-zA-Z]\\w+)\\s*(\\=)\\s*",
438+
"begin": "(^[ \\t]+)?([a-zA-Z][\\w%]+)\\s*(\\=)\\s*",
439439
"beginCaptures": {
440440
"2": {
441441
"name": "variable.parameter"
@@ -481,7 +481,7 @@
481481
}
482482
},
483483
"weapon-types": {
484-
"match": "\\b(PRIMARY|SECONDARY|TERTIARY)",
484+
"match": "\\b(PRIMARY|SECONDARY|TERTIARY)(\\s*\\b(PRIMARY|SECONDARY|TERTIARY))*",
485485
"name": "variable.other.constant.ini"
486486
},
487487
"string": {
@@ -494,7 +494,7 @@
494494
"end": "(?!\\G)",
495495
"patterns": [
496496
{
497-
"match": "[a-zA-Z][ \\._a-zA-Z0-9:\\+\\-]*",
497+
"match": "[a-zA-Z][ \\._a-zA-Z0-9:\\+\\-%]*",
498498
"name": "string.unquoted.ini"
499499
}
500500
]
@@ -525,7 +525,7 @@
525525
]
526526
},
527527
"double": {
528-
"match": "-?\\d[(\\.\\d]*( \\d[(\\.\\d]*)*",
528+
"match": "-?\\d[\\.\\d%fF]*( \\d[\\.\\d%fF]*)*",
529529
"name": "constant.numeric.ini"
530530
},
531531
"boolean": {

0 commit comments

Comments
 (0)