Skip to content

Commit

Permalink
fix(syntax): Apply JSX latest rules for our language (#858)
Browse files Browse the repository at this point in the history
* fix(syntax): Apply JSX latest rules for our language

* chore: changeset

* fix: test
  • Loading branch information
Princesseuh committed Apr 23, 2024
1 parent 0503392 commit 85a47b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-flowers-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro-vscode": patch
---

Fixes commenting shortcut not using the proper comments inside expressions in certain cases
9 changes: 7 additions & 2 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,19 @@
"source.js": "javascript",
"source.ts": "typescript",
"source.json": "json",
"source.tsx": "typescriptreact"
"source.tsx": "typescriptreact",
"meta.tag.tsx": "jsx-tags",
"meta.tag.without-attributes.tsx": "jsx-tags",
"meta.tag.attributes.tsx": "typescriptreact",
"meta.embedded.expression.tsx": "typescriptreact"
},
"unbalancedBracketScopes": [
"keyword.operator.relational",
"storage.type.function.arrow",
"keyword.operator.bitwise.shift",
"meta.brace.angle",
"punctuation.definition.tag"
"punctuation.definition.tag",
"keyword.operator.assignment.compound.bitwise.ts"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/vscode/test/grammar/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function snapShotTest() {

const code = await promisifySpawn(process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm', args, {
stdio: 'inherit',
shell: true,
});

if (code > 0) {
Expand Down

0 comments on commit 85a47b3

Please sign in to comment.