mirror of
https://github.com/laosb/SvelteNova.git
synced 2025-04-30 12:41:09 +00:00
v0.1.5
This commit is contained in:
parent
d19b93d9f0
commit
5bd38fbbf1
1 changed files with 157 additions and 39 deletions
|
@ -438,46 +438,164 @@
|
|||
</subscopes>
|
||||
</scope>
|
||||
|
||||
<!-- Style -->
|
||||
<scope name="html.embedded.style" spell-check="false" lookup="documentation">
|
||||
<starts-with>
|
||||
<expression>(?=<(?i:style)\b)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<!-- SASS -->
|
||||
<scope name="html.embedded.block.style" spell-check="false" lookup="documentation">
|
||||
<starts-with>
|
||||
<expression>(?=<(?i:style)\b)(?=[^>]*lang=('sass'|\"sass\"))(?![^/>]*/>\s*$)</expression>
|
||||
</starts-with>
|
||||
<ends-with />
|
||||
<subscopes anchored="true" skip-whitespace="false">
|
||||
<scope name="html.tag.style.open">
|
||||
<symbol type="tag-style">
|
||||
<context behavior="start" group-by-name="true">
|
||||
<auto-close string="</" completion="${name}>" />
|
||||
</context>
|
||||
</symbol>
|
||||
<starts-with>
|
||||
<expression><((?i:style))</expression>
|
||||
<capture number="1" name="html.tag.name" />
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>/?></expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<include syntax="html" collection="attributes" />
|
||||
</subscopes>
|
||||
</scope>
|
||||
<scope name="html.embedded.block.style.content">
|
||||
<starts-with>
|
||||
<expression>(?<=>)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<scope name="html.tag.style.open">
|
||||
<symbol type="tag-style">
|
||||
<context behavior="start" group-by-name="true">
|
||||
<auto-close string="</" completion="${name}>" />
|
||||
</context>
|
||||
</symbol>
|
||||
<starts-with>
|
||||
<expression><((?i:style))</expression>
|
||||
<capture number="1" name="html.tag.name" />
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>/?></expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<include syntax="self" collection="attributes" />
|
||||
</subscopes>
|
||||
</scope>
|
||||
<scope name="html.embedded.style.content">
|
||||
<starts-with>
|
||||
<expression>(?<=>)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</ends-with>
|
||||
<subsyntax name="css">
|
||||
<cut-off>
|
||||
<expression>(?=</(?i:style|head|body|div)\b)</expression>
|
||||
</cut-off>
|
||||
</subsyntax>
|
||||
</scope>
|
||||
</subscopes>
|
||||
</ends-with>
|
||||
<subsyntax name="sass">
|
||||
<cut-off>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</cut-off>
|
||||
</subsyntax>
|
||||
</scope>
|
||||
</subscopes>
|
||||
</scope>
|
||||
|
||||
<!-- SCSS -->
|
||||
<scope name="html.embedded.block.style" spell-check="false" lookup="documentation">
|
||||
<starts-with>
|
||||
<expression>(?=<(?i:style)\b)(?=[^>]*lang=('scss'|\"scss\"))(?![^/>]*/>\s*$)</expression>
|
||||
</starts-with>
|
||||
<ends-with />
|
||||
<subscopes anchored="true" skip-whitespace="false">
|
||||
<scope name="html.tag.style.open">
|
||||
<symbol type="tag-style">
|
||||
<context behavior="start" group-by-name="true">
|
||||
<auto-close string="</" completion="${name}>" />
|
||||
</context>
|
||||
</symbol>
|
||||
<starts-with>
|
||||
<expression><((?i:style))</expression>
|
||||
<capture number="1" name="html.tag.name" />
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>/?></expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<include syntax="html" collection="attributes" />
|
||||
</subscopes>
|
||||
</scope>
|
||||
<scope name="html.embedded.block.style.content">
|
||||
<starts-with>
|
||||
<expression>(?<=>)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</ends-with>
|
||||
<subsyntax name="scss">
|
||||
<cut-off>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</cut-off>
|
||||
</subsyntax>
|
||||
</scope>
|
||||
</subscopes>
|
||||
</scope>
|
||||
|
||||
<!-- LESS -->
|
||||
<scope name="html.embedded.block.style" spell-check="false" lookup="documentation">
|
||||
<starts-with>
|
||||
<expression>(?=<(?i:style)\b)(?=[^>]*lang=('less'|\"less\"))(?![^/>]*/>\s*$)</expression>
|
||||
</starts-with>
|
||||
<ends-with />
|
||||
<subscopes anchored="true" skip-whitespace="false">
|
||||
<scope name="html.tag.style.open">
|
||||
<symbol type="tag-style">
|
||||
<context behavior="start" group-by-name="true">
|
||||
<auto-close string="</" completion="${name}>" />
|
||||
</context>
|
||||
</symbol>
|
||||
<starts-with>
|
||||
<expression><((?i:style))</expression>
|
||||
<capture number="1" name="html.tag.name" />
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>/?></expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<include syntax="html" collection="attributes" />
|
||||
</subscopes>
|
||||
</scope>
|
||||
<scope name="html.embedded.block.style.content">
|
||||
<starts-with>
|
||||
<expression>(?<=>)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</ends-with>
|
||||
<subsyntax name="less">
|
||||
<cut-off>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</cut-off>
|
||||
</subsyntax>
|
||||
</scope>
|
||||
</subscopes>
|
||||
</scope>
|
||||
|
||||
<!-- CSS -->
|
||||
<scope name="html.embedded.block.style" spell-check="false" lookup="documentation">
|
||||
<starts-with>
|
||||
<expression>(?=<(?i:style)\b)</expression>
|
||||
</starts-with>
|
||||
<ends-with />
|
||||
<subscopes anchored="true" skip-whitespace="false">
|
||||
<scope name="html.tag.style.open">
|
||||
<symbol type="tag-style">
|
||||
<context behavior="start" group-by-name="true">
|
||||
<auto-close string="</" completion="${name}>" />
|
||||
</context>
|
||||
</symbol>
|
||||
<starts-with>
|
||||
<expression><((?i:style))</expression>
|
||||
<capture number="1" name="html.tag.name" />
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>/?></expression>
|
||||
</ends-with>
|
||||
<subscopes>
|
||||
<include syntax="html" collection="attributes" />
|
||||
</subscopes>
|
||||
</scope>
|
||||
<scope name="html.embedded.block.style.content">
|
||||
<starts-with>
|
||||
<expression>(?<=>)</expression>
|
||||
</starts-with>
|
||||
<ends-with>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</ends-with>
|
||||
<subsyntax name="css">
|
||||
<cut-off>
|
||||
<expression>(?=</(?i:style)\b)</expression>
|
||||
</cut-off>
|
||||
</subsyntax>
|
||||
</scope>
|
||||
</subscopes>
|
||||
</scope>
|
||||
|
||||
<!-- Closing Tags -->
|
||||
|
|
Loading…
Add table
Reference in a new issue