From 8a47f55da4fd68bf9c863e9ea1de9faa62a7217b Mon Sep 17 00:00:00 2001 From: Stefan Heinz Date: Tue, 5 Dec 2023 17:57:59 +0100 Subject: [PATCH] Fix comments not working in fgd arrays. Fixes #108 --- samples/fgd/test.fgd | 1 + syntaxes/fgd.tmLanguage.json | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/fgd/test.fgd b/samples/fgd/test.fgd index 298bd02..426ce86 100644 --- a/samples/fgd/test.fgd +++ b/samples/fgd/test.fgd @@ -38,6 +38,7 @@ wirebox(0,10) [ 1 : "Flag" : 0 2 : "Flag 2" : 0 [TF2] + //3 : "Flag 3" : 0 ] KeyvalueExample4(string) : "Keyvalue Display Name" : "Default" : "Description" diff --git a/syntaxes/fgd.tmLanguage.json b/syntaxes/fgd.tmLanguage.json index 9f4d7e8..c67957e 100644 --- a/syntaxes/fgd.tmLanguage.json +++ b/syntaxes/fgd.tmLanguage.json @@ -126,6 +126,7 @@ "begin": "\\[", "end": "\\]", "patterns": [ + { "include": "source.kv#comment" }, { "include": "source.kv#number" }, { "include": "source.kv#stringQuoted" }, { "include": "#preprocessorTag" }