Skip to content

Comments

Fix syntax for hubl in comments#296

Merged
brandenrodgers merged 2 commits intomasterfrom
br/fix-nested-hubl-in-comments
Oct 22, 2025
Merged

Fix syntax for hubl in comments#296
brandenrodgers merged 2 commits intomasterfrom
br/fix-nested-hubl-in-comments

Conversation

@brandenrodgers
Copy link
Contributor

@brandenrodgers brandenrodgers commented Oct 21, 2025

Fixes: #82

Updates the hubl injectionSelector from L:text.css.hubl, L:text.html.hubl to L:text.css.hubl - comment, L:text.html.hubl - comment

This prevents the HubL grammar from re-injecting into regions already marked as comments. The injection selector now excludes comment scopes, which prevents the HubL patterns from being applied inside comment blocks even when injected into HTML/CSS files.

Before

image

After

image

@brandenrodgers brandenrodgers merged commit 99f4b72 into master Oct 22, 2025
1 check passed
@brandenrodgers brandenrodgers deleted the br/fix-nested-hubl-in-comments branch October 22, 2025 14:46
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.

Hubl comments coloring

2 participants