Skip to content

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

Merged
TwitchBronBron merged 6 commits intomasterfrom
xml-disable-comments
Mar 18, 2021
Merged

Add support for bs:disable comments in xml files#363
TwitchBronBron merged 6 commits intomasterfrom
xml-disable-comments

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