Hi, I’m a bit confused by this topic Match multiple lines in .sublime-syntax
also I’ve checked eg js syntax file and found out that if and else kind of compleately independent…
I’m trying to write syntax for my tpl engine. Example:
<div>
@if foo {
<span>@boo</span>
}
else {
Nope.
}
</div>
What I need is to express that if “else” goes after if block(even on new line) its a part of tpl and not a markup. But match seems not matches new line symbils with \s.