-
-
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.
Syntax and language configuration fixes and improvements (#286)
- Loading branch information
1 parent
7c0d09f
commit fec2817
Showing
51 changed files
with
869 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 | ||
--- | ||
|
||
Improved syntax highlighting, auto-indentation and auto-closing |
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
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 @@ | ||
# Testing syntax files | ||
|
||
This is a testing setup powered by [vscode-tmgrammar-test](https://github.com/PanAeon/vscode-tmgrammar-test) intended to test our `astro.tmLanguage.json` file to make sure it properly handle `.astro` files. To run it, simply run the `test:grammar` npm script from the repo | ||
|
||
[Snapshots](https://github.com/PanAeon/vscode-tmgrammar-test#snapshot-tests) can be updated using the `update-grammar-snapshots` npm script, however, unless your changes affect the currently present snapshots, you should always make sure to run the tests (`yarn run test:grammar`) before updating the snapshots, to make sure your changes do not introduce regressions |
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,4 @@ | ||
{ | ||
"comment": "Dummy CSS TextMate grammar for use in testing", | ||
"scopeName": "source.css" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/html.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy HTML TextMate grammar for use in testing", | ||
"scopeName": "text.html" | ||
} |
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,4 @@ | ||
{ | ||
"comment": "Dummy JS TextMate grammar for use in testing", | ||
"scopeName": "source.js" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/json.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy JSON TextMate grammar for use in testing", | ||
"scopeName": "source.json" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/less.tsLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Less TextMate grammar for use in testing", | ||
"scopeName": "source.css.less" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/markdown.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Markdown TextMate grammar for use in testing", | ||
"scopeName": "text.html.markdown" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/sass.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Sass TextMate grammar for use in testing", | ||
"scopeName": "source.sass" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/scss.tsLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Scss TextMate grammar for use in testing", | ||
"scopeName": "source.css.scss" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/stylus.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Stylus TextMate grammar for use in testing", | ||
"scopeName": "source.stylus" | ||
} |
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,4 @@ | ||
{ | ||
"comment": "Dummy TS TextMate grammar for use in testing", | ||
"scopeName": "source.ts" | ||
} |
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,4 @@ | ||
{ | ||
"comment": "Dummy TSX TextMate grammar for use in testing", | ||
"scopeName": "source.tsx" | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/vscode/test/grammar/dummy/unknown.tmLanguage-dummy.json
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,4 @@ | ||
{ | ||
"comment": "Dummy Unknown TextMate grammar for use in testing", | ||
"scopeName": "source.unknown" | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/vscode/test/grammar/fixtures/components/component.astro
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,3 @@ | ||
<Component> | ||
<div></div> | ||
</Component> |
Oops, something went wrong.