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

Enhance support for lang/type attributes #40

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

deathaxe
Copy link
Contributor

This PR...

  1. applies scope changes from [HTML] Add support for mime type completions sublimehq/Packages#4061
  2. adds completions for lang= and type= attribute values.
  3. adds support for long language= attribute to align with recent core package changes.
  4. adds support for short lang="coffee" as alternative for lang="coffeescript".
  5. creates dome dummy syntaxes to be able to test embedded syntaxes in script/style tags without actually cloning required syntax packages.

This commit introduces support for both `lang=` and `language=` attributes.

Note: support for those have been recently added to core packages (e.g. ASP)
and will be part of next Vue package. This commit aligns Svelte with those.
Align with Vue and other template syntaxes. Some even preferred only "coffee".
Lets support both forms in all of them.
This commit scopes `lang=""` attributes `meta.attribute-with-value.lang`
and `type=""` attributes `meta.attribute-with-value.type`,
to enable support for language/mime-type value completions.

Note: mime-type completions require ST release with following PR merged.

related with sublimehq/Packages#4061
This commit removes explicit js/javascript lang-type pattern
as it is already handled as default language by `(?=\S)`.
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.

1 participant