Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indenting error #14

Open
sneiman opened this issue May 8, 2015 · 3 comments
Open

indenting error #14

sneiman opened this issue May 8, 2015 · 3 comments

Comments

@sneiman
Copy link

sneiman commented May 8, 2015

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

@Rochet2
Copy link
Contributor

Rochet2 commented Jun 26, 2016

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.

@tobiasvl
Copy link

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

@Rochet2
Copy link
Contributor

Rochet2 commented Jan 23, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants