Skip to content

Commit 5e3fed6

Browse files
authored
fix: update to include pathvars
If I understand this diff correctly, we need to add this directive to the global, module and rule scopes: https://github.com/snakemake/snakemake/pull/3760/changes#diff-cefc28a3359ed79bebf577c350da973634f6200a4f3b200c954781138dc8b3a9
1 parent f40764d commit 5e3fed6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

snakefmt/parser/grammar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class PythonCode(Vocabulary):
5050
default_target=Context(None, InlineSingleParam),
5151
retries=Context(None, InlineSingleParam),
5252
localrule=Context(None, InlineSingleParam),
53+
pathvars=Context(None, ParamList),
5354
)
5455

5556

@@ -79,6 +80,7 @@ class SnakeModule(Vocabulary):
7980
prefix=Context(None, SingleParam),
8081
replace_prefix=Context(None, SingleParam),
8182
name=Context(None, InlineSingleParam),
83+
pathvars=Context(None, ParamList),
8284
)
8385

8486

@@ -110,4 +112,5 @@ class SnakeGlobal(Vocabulary):
110112
resource_scopes=Context(None, KeywordSyntax),
111113
conda=Context(None, InlineSingleParam),
112114
storage=Context(None, ParamList),
115+
pathvars=Context(None, ParamList),
113116
)

0 commit comments

Comments
 (0)