Skip to content

Commit 7fefe60

Browse files
committed
Fixed fgd param type breaking when there is whitespace after type. Fixes #109
1 parent 8a47f55 commit 7fefe60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

samples/fgd/test.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
]
2020

2121
KeyvalueExample4(string) : "Keyvalue Display Name" : "Default" : "Description"
22+
KeyvalueExample5( string ) : "Keyvalue Display Name" : "Default" : "Description"
2223

2324
input InputExample(void) : "Description"
2425

syntaxes/fgd.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
]
108108
}
109109
},
110-
"end": "(\\w+)\\)",
110+
"end": "(\\w+)\\s*\\)",
111111
"endCaptures": {
112112
"1": {
113113
"patterns": [

0 commit comments

Comments
 (0)