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

[CSS] Fix issues with template interpolation #4055

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

deathaxe
Copy link
Collaborator

This PR...

  1. changes context include order to give property-lists less priority over {{ interpol }} interpolation tags, so they are scoped as part of selectors or property names.

  2. in case strategy 1 is not enough, provide variables to override block punctuation, without duplicating contexts.

Note: This commit does not change behavior of CSS itself, just helps inherited
CSS variants used in templates like Blade, Go, Jinja, Twig, ...

This commit...

1. changes context include order to give `property-lists` less priority over
   `{{ interpol }}` interpolation tags, so they are scoped as part of selectors
   or property names.

2. in case strategy 1 is not enough, provide variables to override block
   punctuation, without duplicating contexts.

Note: This commit does not change behavior of CSS itself, just helps inherited
      CSS variants used in templates like Blade, Go, Jinja, Twig, ...
keith-hall
keith-hall previously approved these changes Oct 10, 2024
Copy link
Collaborator

@keith-hall keith-hall left a comment

Choose a reason for hiding this comment

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

Just a typo in the comments, otherwise looks good to me

CSS/CSS.sublime-syntax Outdated Show resolved Hide resolved
CSS/CSS.sublime-syntax Outdated Show resolved Hide resolved
CSS/CSS.sublime-syntax Outdated Show resolved Hide resolved
deathaxe and others added 3 commits October 11, 2024 07:21
@deathaxe deathaxe merged commit 8aae77f into sublimehq:master Oct 11, 2024
1 check passed
@deathaxe deathaxe deleted the pr/css/block-interpolation branch October 11, 2024 13:02
deathaxe added a commit to SublimeText/TailwindCSS that referenced this pull request Oct 26, 2024
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.

3 participants