-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix indentation bug when brighterscript keywords are used as identifiers #96
Fix indentation bug when brighterscript keywords are used as identifiers #96
Conversation
038171d
to
b9c34c1
Compare
just rolled back all the commits to remove the just waiting to see if all the Github build tests pass now ... |
code is tidy now test is failing above because ... looks like ... code coverage is not 100%, not because of an error in the changes I will have to look into writing fresh tests to cover extra code, to bring test coverage back up to 100% |
OK @TwitchBronBron looks like
cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philanderson888 I pushed a test that's failing and needs to be fixed. Can you take a look?
Hey @chrisdp @markwpearce @heart-of-code @addison-adler @TwitchBronBron added a Try ... Catch failing test as well into the mix, which I have fixed (I think!) So code is ready for second round of code reviews, thanks all here is output of bsfmt function after changes implemented ` function class() function try() function enum() function interface() function try() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this on a large internal project, and everything worked as expected. I think this is good to go! Nice work.
Thanks @TwitchBronBron appreciate that Happy to help cc @addison-adler let me know if this helps you, now that it's merged! |
Prevent brighterscript-specific keywords such as
enum
andclass
from triggering indentation when not contained within those actual ast node types.class:
Fixes #77