Skip to content

Conversation

@blu-base
Copy link
Contributor

This PR contains a more significant change to the xml lexer. I changed the tag detection to look more like the html ones, where a Tag token is used for the name, but punctuation tokens for characters like [<>\\].

I am not sure, whether the xml lexer was kept intentionally simple. That's why secluded this change into it's own commits here.

'html-attribute-value'),
(r'[\w:-]+', Name.Attribute),
(r'\)', Text, '#pop'),
(r'\)', Whitespace, '#pop'),
Copy link
Contributor

Choose a reason for hiding this comment

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

The parenthesis is not whitespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right! This was by mistake

@@ -0,0 +1,17 @@
!!! XML
Copy link
Contributor

Choose a reason for hiding this comment

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

Files in examplefiles/ usually end in the normal extension of the language, unlike snippets/.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll rename it.

@jeanas jeanas added the update needed Waiting for an update from the PR/issue creator label Mar 16, 2022
@Anteru
Copy link
Collaborator

Anteru commented Sep 25, 2022

Merged master into this and updated the one failing test. This should be good to merge now.

@jeanas
Copy link
Contributor

jeanas commented Sep 25, 2022

There is still #2012 (comment) though.

@Anteru
Copy link
Collaborator

Anteru commented Oct 29, 2022

Thanks, just fixed both issues mentioned in the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update needed Waiting for an update from the PR/issue creator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants