language-lua icon indicating copy to clipboard operation
language-lua copied to clipboard

indenting error

Open sneiman opened this issue 10 years ago • 3 comments

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

sneiman avatar May 08 '15 01:05 sneiman

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.

Rochet2 avatar Jun 26 '16 21:06 Rochet2

This package has support for Atom's new tree-sitter grammars (which don't use regex): https://atom.io/packages/language-lua-plus

tobiasvl avatar Jan 23 '19 10:01 tobiasvl

Good to know. I was looking for that earlier last year and couldnt find.

Rochet2 avatar Jan 23 '19 12:01 Rochet2