Doesn't handle strings well (single and double quote)
Closed this issue · 2 comments
yochem commented
Summary
Multiple strings on one line are not handled well.
Steps to reproduce
- Neovim version: NVIM v0.8.0-dev+430-g0c6ad03c3
- Using colorscheme github.com/ful1e5/onedark.nvim
Open a .v file with this content:
module main
import os
import flag
fn add_path(path string) {
println("hello from add_path")
}
fn main() {
mut fp := flag.new_flag_parser(os.args)
fp.application("z.v")
fp.version("v0.0.1")
fp.description("jump around")
fp.limit_free_args(0, 0)
fp.skip_executable()
a_bool := fp.string("add", 0, "", "add directory to zdata")
println("aa_bool: $a_bool")
}
Expected Behavior
Strings should be green.
Observed Behavior
As shown above.
yochem commented
It works if I split the fp.string
over multiple lines and then go back to the one-line version.
yochem commented
This was because of treesitter.