Skip to content

Add Sublime Text specific CSS#425

Open
deathaxe wants to merge 3 commits intomasterfrom
feature/add-sublime-css
Open

Add Sublime Text specific CSS#425
deathaxe wants to merge 3 commits intomasterfrom
feature/add-sublime-css

Conversation

@deathaxe
Copy link
Member

Resolves #369

This PR...

  1. adds a Sublime CSS.sublime-syntax extending on Packages/CSS/CSS.sublime-syntax to implement ST specific features and limitations.

    Sublime CSS does not support at-rules, nested selectors or most built-in functions.

  2. includes new CSS syntax into Sublime Text Color Scheme and Sublime Text Theme syntaxes using an intermediate Sublime CSS (for JSON), dropping the need for with_prototype. This reduces syntax cache size of target languages by about 60-70%.

  3. adds named contexts for refactored value strings

  4. adds meta.string and removes string.quoted from CSS related values.

Restore required meta scope to maintain color value completions.
As `string` scope is removed from css values, this commit adds some adjustments.
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.

Extend Default CSS syntax for ST-specific CSS

1 participant