I think this line:
|
collectSpecificDependencies(result, baseGrammar, baseGrammar, includedName, patternRepository); |
should rather be this:
collectSpecificDependencies(result, baseGrammar, baseGrammar, includedName, baseGrammar.repository);
Also, this line:
|
collectSpecificDependencies(result, baseGrammar, selfGrammar, includedName, patternRepository); |
should be this:
collectSpecificDependencies(result, baseGrammar, selfGrammar, includedName, selfGrammar.repository);
Let's say source.md embeds source.css and a rule in source.css references source.md#link.
Then with the logic in main, a rule in source.css referencing source.md#link would look up link in its local repository (first repositories of this rule or parent rules, then the repository of source.css), but not in the repository of source.md.
I think this line:
vscode-textmate/src/grammar.ts
Line 147 in 9157c7f
should rather be this:
Also, this line:
vscode-textmate/src/grammar.ts
Line 149 in 9157c7f
should be this:
Let's say
source.mdembedssource.cssand a rule insource.cssreferencessource.md#link.Then with the logic in main, a rule in
source.cssreferencingsource.md#linkwould look uplinkin its local repository (first repositories of this rule or parent rules, then the repository ofsource.css), but not in the repository ofsource.md.