Skip to content

Commit

Permalink
fix: removes struct, task, and workflow from keywords
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
claymcleod committed Nov 13, 2024
1 parent 98f3c56 commit 38b011b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/wdl.tmGrammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@
},
{
"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",
"match": "\\b(true|false|left|right|null)\\b"
},
{
"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",
Expand Down

0 comments on commit 38b011b

Please sign in to comment.