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

Comments at the end of line continuations #27

Closed
KyleMit opened this issue Jan 12, 2021 · 1 comment
Closed

Comments at the end of line continuations #27

KyleMit opened this issue Jan 12, 2021 · 1 comment

Comments

@KyleMit
Copy link

KyleMit commented Jan 12, 2021

Input:

if code == 9 -- \t
or code == 32 -- <space>
   then
    print(code)
end

Output:

if code == 9 -- \t or code == 32 -- <space> then
	print(code)
end

Expected (combine code and comments serially):

if code == 9 or code == 32 then -- \t  -- <space> 
	print(code)
end

Expected (do nothing if removing new line will place executing code inside a comment):

if code == 9 -- \t
or code == 32 -- <space>
   then
    print(code)
end

(same as input)

or do nothing if removing a newline is going to

@KyleMit
Copy link
Author

KyleMit commented Jan 12, 2021

Sorry - this is a dupe of #23 - it can be closed

@KyleMit KyleMit closed this as completed Jan 12, 2021
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

1 participant