Skip to content

Commit

Permalink
chore: fix GitHub and original textmate when using undeclared default…
Browse files Browse the repository at this point in the history
… export of a template in GTS/GJS

Fix: Fix GitHub and original textmate when using undeclared default export of a template in GTS/GJS
  • Loading branch information
lifeart authored Mar 15, 2024
2 parents e92ccb2 + 76fce7b commit 9019314
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions syntaxes/source.gjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"scopeName": "source.gjs",
"patterns": [
{
"include": "source.js"
"include": "#main"
},
{
"include": "#main"
"include": "source.js"
}
],
"injections": {
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/source.gts.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"scopeName": "source.gts",
"patterns": [
{
"include": "source.ts"
"include": "#main"
},
{
"include": "#main"
"include": "source.ts"
}
],
"injections": {
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function mergeGlimmerSourceGrammars(grammar, injectionSelector) {
},
};

grammar.patterns.push({ include: '#main' });
grammar.patterns.unshift({ include: '#main' });

grammar.repository = {
main: {
Expand Down

0 comments on commit 9019314

Please sign in to comment.