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

Highlight error caused by {{ in the HTML tag #84

Open
Tinhone opened this issue Oct 23, 2023 · 1 comment
Open

Highlight error caused by {{ in the HTML tag #84

Tinhone opened this issue Oct 23, 2023 · 1 comment
Labels
bug Something isn't working syntax the issue about wikitext syntax

Comments

@Tinhone
Copy link

Tinhone commented Oct 23, 2023

Normal rendering:
{{#if: {{{2|}}} | style="--test: {{{2|}}}" }}

Abnormal rendering:
<div {{#if: {{{2|}}} | style="--test: {{{2|}}}" }}>

图片

In the image, snippet #if: {{{2|}}} has incorrect highlight.

Also, is the highlight of snippet --test: {{{2|}}} the expected effect?

Thanks for your work! 💖

@Frederisk
Copy link
Owner

I looked into the issue, But unfortunately, this part of the syntax is actually provided by another syntax extension that the extension depends on: the HTML syntax extension.

You can view the specific content here:

So, as a downstream, it's difficult for me to make productive changes to this. But at the same time, this is not an upstream error, because HTML syntax has no obligation to parse Wikitext content.

However, this problem can be solved. I could try injecting syntax upstream or use LSP (that's another story).

However, due to the difficulty of implementation and my recent lack of time and energy to deal with it further, this issue may take quite a while to be resolved. This issue will remain open until the issue is resolved.

@Frederisk Frederisk added bug Something isn't working syntax the issue about wikitext syntax labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syntax the issue about wikitext syntax
Projects
None yet
Development

No branches or pull requests

2 participants