Skip to content

Commit

Permalink
fix injection selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Sep 14, 2024
1 parent 9165398 commit 8a18988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/injection-grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class InjectionGrammar extends Writable {
valueOf() {
return {
scopeName: this.scopeName,
injectionSelector: `L:${this.injectionScopeName} -comment`,
injectionSelector: `L:${this.injectionScopeName} -comment -string -meta.embedded`,
patterns: this.#getPatterns(),
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scopeName": "source.github-actions-workflow.injection",
"injectionSelector": "L:source.github-actions-workflow -comment",
"injectionSelector": "L:source.github-actions-workflow -comment -string -meta.embedded",
"patterns": [
{
"begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/source.yaml.injection.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scopeName": "source.yaml.injection",
"injectionSelector": "L:source.yaml -comment",
"injectionSelector": "L:source.yaml -comment -string -meta.embedded",
"patterns": [
{
"begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)",
Expand Down

0 comments on commit 8a18988

Please sign in to comment.