From 38b011bb47028b81826cd7450638ea31423435e7 Mon Sep 17 00:00:00 2001 From: Clay McLeod Date: Tue, 12 Nov 2024 16:47:19 -0600 Subject: [PATCH] fix: removes `struct`, `task`, and `workflow` from keywords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These should only be highlighted in the context of struct, task, and workflow declarations—things like `import @stjudecloud/workflow` (a phrase that I was tested out as an importing paradigm) should not highlight the word 'workflow'. --- syntaxes/wdl.tmGrammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/wdl.tmGrammar.json b/syntaxes/wdl.tmGrammar.json index 49aa48c..ce28dda 100644 --- a/syntaxes/wdl.tmGrammar.json +++ b/syntaxes/wdl.tmGrammar.json @@ -390,7 +390,7 @@ }, { "name": "storage.type", - "match": "\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime|struct|task|workflow)\\b\\s*(?!:)" + "match": "\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime)\\b\\s*(?!:)" }, { "name": "constant.language.wdl", @@ -398,7 +398,7 @@ }, { "name": "keyword.wdl", - "match": "\\b(after|alias|as|call|command|else|false|hints|if|in|import|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|struct|task|then|true|version|workflow)\\b\\s*(?!:)" + "match": "\\b(after|alias|as|call|command|else|false|hints|if|in|import|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|then|true|version)\\b\\s*(?!:)" }, { "name": "entity.name.type.wdl",