From 7fefe604730971d44361142b7c005d0f7b4aeb6c Mon Sep 17 00:00:00 2001 From: Stefan Heinz Date: Tue, 5 Dec 2023 18:02:00 +0100 Subject: [PATCH] Fixed fgd param type breaking when there is whitespace after type. Fixes #109 --- samples/fgd/test.fgd | 1 + syntaxes/fgd.tmLanguage.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/fgd/test.fgd b/samples/fgd/test.fgd index 426ce86..99cc7ca 100644 --- a/samples/fgd/test.fgd +++ b/samples/fgd/test.fgd @@ -19,6 +19,7 @@ ] KeyvalueExample4(string) : "Keyvalue Display Name" : "Default" : "Description" + KeyvalueExample5( string ) : "Keyvalue Display Name" : "Default" : "Description" input InputExample(void) : "Description" diff --git a/syntaxes/fgd.tmLanguage.json b/syntaxes/fgd.tmLanguage.json index c67957e..8fe1a3b 100644 --- a/syntaxes/fgd.tmLanguage.json +++ b/syntaxes/fgd.tmLanguage.json @@ -107,7 +107,7 @@ ] } }, - "end": "(\\w+)\\)", + "end": "(\\w+)\\s*\\)", "endCaptures": { "1": { "patterns": [