language-lua
language-lua copied to clipboard
indenting error
If you use the string 'function', it is indented as if you used the keyword function: For example:
local a = type(x) == 'function' and x or nil
indents one tab after return
Seems like a difficult thing to fix in regex only. (not that I am a regex expert) Im guessing it would be best if atom had a feature that could recognize strings and then leave indenting out of them.
This package has support for Atom's new tree-sitter grammars (which don't use regex): https://atom.io/packages/language-lua-plus
Good to know. I was looking for that earlier last year and couldnt find.