mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
36 lines
508 B
Text
36 lines
508 B
Text
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"])
|