withastro / language-tools

Language tools for Astro
MIT License
242 stars 46 forks source link

fix `tmLanguage`: text.astro pattern #826

Closed goulvenclech closed 4 months ago

goulvenclech commented 4 months ago

Changes

In this case :

blabla<div>word</div>
{true && <div>word</div>}blabla

Both blabla have the scope source.astro instead of text.astro, which is the scope in HTML. Fixed the text.astro pattern to match that.

Testing

Snap test -> packages/vscode/test/grammar/fixtures/text.astro.snap

Docs

N/A, this PR will match the documented behaviour.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 4ef201b106fe0047948e4466b2588a3e1e82791d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------ | ----- | | astro-vscode | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

goulvenclech commented 4 months ago

@Princesseuh shouted at me, so I added a test :'(