mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
parent
939556333f
commit
fee71c102c
6 changed files with 171 additions and 20 deletions
22
tests/indent/snakemake/blocks.smk
Normal file
22
tests/indent/snakemake/blocks.smk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
rule A:
|
||||
"""doc"""
|
||||
|
||||
if True:
|
||||
rule B:
|
||||
"""doc"""
|
||||
|
||||
use rule other from somewhere
|
||||
|
||||
use rule other2 from somewhere as other_alias
|
||||
|
||||
use rule other3 from somewhere with:
|
||||
input: 2
|
||||
|
||||
use rule other4 from somewhere as other_alias2 with:
|
||||
input: 2
|
||||
|
||||
checkpoint C:
|
||||
input: "1"
|
||||
|
||||
module A:
|
||||
snakefile: "x.smk"
|
||||
36
tests/indent/snakemake/directive_parameters.smk
Normal file
36
tests/indent/snakemake/directive_parameters.smk
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
rule A:
|
||||
input: a
|
||||
output: b
|
||||
params:
|
||||
a = 1,
|
||||
b = 2,
|
||||
c = 3
|
||||
shell:
|
||||
"""
|
||||
touch {output}
|
||||
"""
|
||||
|
||||
rule B:
|
||||
input: a,
|
||||
output: a,
|
||||
b
|
||||
params:
|
||||
|
||||
rule C:
|
||||
# test dedent after variably nested nodes
|
||||
params:
|
||||
1
|
||||
params:
|
||||
"1"
|
||||
params:
|
||||
a = 1
|
||||
params:
|
||||
a = "1"
|
||||
params:
|
||||
a = call(1)
|
||||
params:
|
||||
a = call("1")
|
||||
params:
|
||||
a = config["a"]
|
||||
params:
|
||||
b = call(config["a"])
|
||||
Loading…
Add table
Add a link
Reference in a new issue