-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tmLanguage): text pattern (#830)
- Loading branch information
1 parent
2a1bb02
commit cc0c86b
Showing
5 changed files
with
112 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"astro-vscode": patch | ||
--- | ||
|
||
text pattern is now after scope & frontmatter patterns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
text<div>text</div> | ||
<div>text</div>text | ||
text{"text"} | ||
{"text"}text | ||
--- | ||
const cool = "our frontmatter" | ||
console.log("Hello, World!") | ||
console.log(`This is ${cool}!`) | ||
--- | ||
|
||
This is some text<div> | ||
<p> | ||
Some text in HTML tags | ||
<strong> and some text in nested tags </strong> | ||
</p> | ||
Watch this html entity! | ||
{true && <p>Some more text in expression</p>} | ||
<!-- Wow, we even have an HTML comment --> | ||
</div>This is the final text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,58 @@ | ||
>text<div>text</div> | ||
>--- | ||
#^^^ source.astro comment | ||
>const cool = "our frontmatter" | ||
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro source.ts | ||
>console.log("Hello, World!") | ||
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro source.ts | ||
>console.log(`This is ${cool}!`) | ||
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro source.ts | ||
>--- | ||
#^^^ source.astro comment | ||
> | ||
>This is some text<div> | ||
#^^^^^^^^^^^^^^^^^ source.astro text.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.start.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.end.astro | ||
> <p> | ||
#^^ source.astro text.astro | ||
# ^ source.astro meta.scope.tag.p.astro meta.tag.start.astro punctuation.definition.tag.begin.astro | ||
# ^ source.astro meta.scope.tag.p.astro meta.tag.start.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.p.astro meta.tag.start.astro punctuation.definition.tag.end.astro | ||
> Some text in HTML tags | ||
#^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro text.astro | ||
> <strong> and some text in nested tags </strong> | ||
#^^^^ source.astro text.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.start.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.end.astro | ||
# ^^^^ source.astro text.astro | ||
# ^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.end.astro | ||
><div>text</div>text | ||
#^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.start.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.end.astro | ||
# ^^^^ source.astro text.astro | ||
# ^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.end.astro | ||
# ^^^^ source.astro text.astro | ||
>text{"text"} | ||
#^^^^ source.astro text.astro | ||
# ^ source.astro punctuation.section.embedded.begin.astro | ||
# ^^^^^^ source.astro meta.embedded.expression.astro source.tsx | ||
# ^ source.astro punctuation.section.embedded.end.astro | ||
>{"text"}text | ||
#^ source.astro punctuation.section.embedded.begin.astro | ||
# ^^^^^^ source.astro meta.embedded.expression.astro source.tsx | ||
# ^ source.astro punctuation.section.embedded.end.astro | ||
# ^^^^ source.astro text.astro | ||
# ^ source.astro meta.scope.tag.strong.astro meta.tag.start.astro punctuation.definition.tag.begin.astro | ||
# ^^^^^^ source.astro meta.scope.tag.strong.astro meta.tag.start.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.strong.astro meta.tag.start.astro punctuation.definition.tag.end.astro | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro text.astro | ||
# ^^ source.astro meta.scope.tag.strong.astro meta.tag.end.astro punctuation.definition.tag.begin.astro | ||
# ^^^^^^ source.astro meta.scope.tag.strong.astro meta.tag.end.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.strong.astro meta.tag.end.astro punctuation.definition.tag.end.astro | ||
> </p> | ||
#^^ source.astro text.astro | ||
# ^^ source.astro meta.scope.tag.p.astro meta.tag.end.astro punctuation.definition.tag.begin.astro | ||
# ^ source.astro meta.scope.tag.p.astro meta.tag.end.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.p.astro meta.tag.end.astro punctuation.definition.tag.end.astro | ||
> Watch this html entity! | ||
#^^^^^^^^^^^^^ source.astro text.astro | ||
# ^ source.astro text.astro constant.character.entity.named.nbsp.astro punctuation.definition.entity.astro | ||
# ^^^^ source.astro text.astro constant.character.entity.named.nbsp.astro | ||
# ^ source.astro text.astro constant.character.entity.named.nbsp.astro punctuation.definition.entity.astro | ||
# ^^^^^^^^^^^^^ source.astro text.astro | ||
> {true && <p>Some more text in expression</p>} | ||
#^^ source.astro text.astro | ||
# ^ source.astro punctuation.section.embedded.begin.astro | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.embedded.expression.astro source.tsx | ||
# ^ source.astro punctuation.section.embedded.end.astro | ||
> <!-- Wow, we even have an HTML comment --> | ||
#^^ source.astro text.astro | ||
# ^^^^ source.astro comment.block.astro punctuation.definition.comment.astro | ||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro comment.block.astro | ||
# ^^^ source.astro comment.block.astro punctuation.definition.comment.astro | ||
></div>This is the final text | ||
#^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.begin.astro | ||
# ^^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro entity.name.tag.astro | ||
# ^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.end.astro | ||
# ^^^^^^^^^^^^^^^^^^^^^^ source.astro text.astro |