-
-
Notifications
You must be signed in to change notification settings - Fork 391
Closed
Description
Information
- Editor: NeoVim
- OS: MacOS
- Issue topic: Diagnostics/Syntax Checking
Sample config
formatters = {
prettier = {
range_args = function(ctx)
return { "--stdin-filepath", "$FILENAME", "--range-start", ctx.range.start, "--range-end", ctx.range.end }
end,
}
}Issue description
Above config should have no syntax issue, however, lua_ls recognize end in ctx.range.end as a Lua keyword which terminates the function, and it reported an error on this "<field> expected".
even if I change it to ctx.range.["end"], it still reported "<field> expected". after I removed ctx.range.end, no errors were reported.
Metadata
Metadata
Assignees
Labels
No labels