Hello
Can I easily define a scope from a brace up to corresponding closing brace ?
For example, how highlight all trigger content with a good syntax here ?
trigger = {
intrigue = 10
NOT = {
flag = rumour_spreader
}
courtier = {
is_female = no
age = 16
NOT = {
flag = impotent
}
NOT = {
children = 1
}
NOT = {
trait = envy
}
}
}
I think my syntax file is unnecessarily complex (I would like one scope and exclude “trigger”).
- match: \btrigger\b
push:
- meta_scope: meta.block.trigger00.txt
- match: \}
pop: true
- include: comments
- match: \{
push:
- meta_scope: meta.block.trigger01.txt
- match: \}
pop: true
- include: comments
- match: \{
push:
- meta_scope: meta.block.trigger02.txt
- match: \}
pop: true
- include: comments
- match: \{
push:
- meta_scope: meta.block.trigger03.txt
- match: \}
pop: true
- include: comments
- match: \{
push:
- meta_scope: meta.block.trigger04.txt
- match: \}
pop: true
- include: comments
Thanks for any help