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

Add support for bs:disable comments in xml files #363

Merged
merged 6 commits into from
Mar 18, 2021

Conversation

TwitchBronBron
Copy link
Member

Adds support for bs:disable xml comments.
Resolves #325

Notable changes:

  • move CommentFlag functionality into a separate class so that XmlFile and BrsFile can share the logic (and potentially future file types as well

});

it('tokenizes bs:disable-line comment with codes', () => {
const token = Lexer.scan(`'bs:disable-line:1 2 3`).tokens[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it support a space after the quote?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it does. But just to ensure it continues to work forever, I added unit tests with spaces in this commit

@TwitchBronBron TwitchBronBron merged commit 6a15ad9 into master Mar 18, 2021
@TwitchBronBron TwitchBronBron deleted the xml-disable-comments branch March 18, 2021 21:42
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.

xml bs:disable comments
2 participants