yats.vim
yats.vim copied to clipboard
Arrow Function Syntax Highlighting
I opened an issue in NeoVim related to this issue: https://github.com/neovim/neovim/issues/26246
They have pointed out that I should report this issue to the maintainer of the syntax files, which seems to be you :)
Here's a code example that reproduces the invalid syntax highlighing when used in NeoVim:
function example(foo: string, bar: (baz: string, foobar: (foobaz: string, foobarbaz: () => void) => void) => void) {
console.log('foo 1', foo);
bar(foo, () => {
console.log('foo 2', foo);
});
}
function main() {
example('foo', (baz: string, foobar: (foobaz: string, foobarbaz: () => void) => void) => {
foobar(baz, () => {
console.log('baz', baz);
});
});
}
In my Neovim (v0.10.0-dev) without any language server I get the following highlighting:
The arrow function callback on the line 10 is not highlighted properly. In contrast, the arrow function callback on line 3 is highlighted properly.