Skip to content

Conversation

@deathaxe
Copy link

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