pull/11885/head
pascalkuthe 1 year ago
parent ac38c5e1fe
commit e41048d107

@ -178,7 +178,7 @@
<main>
<h1 id="adding-injection-queries"><a class="header" href="#adding-injection-queries">Adding Injection Queries</a></h1>
<p>Writing language injection queries allows one to highlight a specific node as a different language.
In addition to the <a href="upstream-docs">standard</a> language injection options used by tree-sitter, there
In addition to the <a href="http://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection">standard</a> language injection options used by tree-sitter, there
are a few Helix specific extensions that allow for more control.</p>
<p>And example of a simple query that would highlight all strings as bash in Nix:</p>
<pre><code class="language-scm">((string_expression (string_fragment) @injection.content)

@ -2652,7 +2652,7 @@ line. (Note these scopes are the defaults for <code>@indent</code> and <code>@ou
written explicitly for demonstration.)</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="adding-injection-queries"><a class="header" href="#adding-injection-queries">Adding Injection Queries</a></h1>
<p>Writing language injection queries allows one to highlight a specific node as a different language.
In addition to the <a href="guides/upstream-docs">standard</a> language injection options used by tree-sitter, there
In addition to the <a href="http://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection">standard</a> language injection options used by tree-sitter, there
are a few Helix specific extensions that allow for more control.</p>
<p>And example of a simple query that would highlight all strings as bash in Nix:</p>
<pre><code class="language-scm">((string_expression (string_fragment) @injection.content)

Loading…
Cancel
Save