kaarmu/typst.vim

syntax highlighting: if, while and for statment bodies are in content mode instead of code mode

Closed this issue · 2 comments

If a if, while or for statment is placed in content mode it's body is always highlighted in content mode, even if using {} for code mode:

#while index < 3 {
    let x = "abc"  // Wrong highlighting
}

#{
    while index < 3 {
        let x = "abc"  // Correct highlighting
    }
}

I tried to have a look at the code, but I've never worked on a vim syntax highlighter before, so I couldn't find an easy solution.

kaarmu commented

Thank you for reporting this! I'll try to look at it in the next few days.

kaarmu commented

Sorry for the delay. I hope it is solved for you now! 😄