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

Removes CommentStatement and all comment tokens from Lexer output #1083

Conversation

markwpearce
Copy link
Collaborator

  • Comments now reside SOLELY in leading trivia.
  • TranspileState.transpileToken() will automatically transpile comments (if they exist) ahead of the token
  • To still indent comments before a "block closing token" (eg. }, end sub, etc), use TranspileState.transpileEndBlockToken()`
  • Modified getSignatureHelp, getDocumentation, etc. to use leading trivia only

@markwpearce markwpearce added this to the v1.0.0 milestone Mar 3, 2024
@markwpearce
Copy link
Collaborator Author

Addresses #1042
Addresses #1031

src/parser/Parser.ts Outdated Show resolved Hide resolved
src/parser/SGTypes.ts Outdated Show resolved Hide resolved
Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a few suggestions, but overall looks good.

@TwitchBronBron TwitchBronBron merged commit 559ffd4 into rokucommunity:release-1.0.0 Mar 8, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants