<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/tests/query/injections/yaml, branch feat/emmylua</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/injections/yaml?h=feat%2Femmylua</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/tests/query/injections/yaml?h=feat%2Femmylua'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2025-04-07T19:08:22Z</updated>
<entry>
<title>More bash injection support for Taskfile (#7805)</title>
<updated>2025-04-07T19:08:22Z</updated>
<author>
<name>Mikkel Mondrup Kristensen</name>
<email>monrad@github.com</email>
</author>
<published>2025-04-07T19:08:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=0e21ee8df6235511c02bab4a5b391d18e165a58d'/>
<id>urn:sha1:0e21ee8df6235511c02bab4a5b391d18e165a58d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(yaml): inject bash for taskfiles (#7804)</title>
<updated>2025-04-06T17:09:27Z</updated>
<author>
<name>Anthony Fiddes</name>
<email>11233666+Anthony-Fiddes@users.noreply.github.com</email>
</author>
<published>2025-04-06T17:09:27Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=205faba1768a6e4c854f156bc6a21a41b242599c'/>
<id>urn:sha1:205faba1768a6e4c854f156bc6a21a41b242599c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(promql): do not use regex for string labels (#7669)</title>
<updated>2025-02-20T11:17:32Z</updated>
<author>
<name>Daniil Leontev</name>
<email>d@leontiev.xyz</email>
</author>
<published>2025-02-20T11:17:32Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=d2ff4006418750aa8b91f280e66bdb623c891c95'/>
<id>urn:sha1:d2ff4006418750aa8b91f280e66bdb623c891c95</id>
<content type='text'>
In Prometheus, label values are treated as strings when used with the
`=` and `!=` operators, and as regular expressions when used with the
`=~` and `!~` operators.

Injecting and then highlighting all label values as regex leads to a
situation where entirely valid **string** label values containing regex
special characters are mistakenly parsed and highlighted as regex. This
results in syntax errors, causing labels to be highlighted incorrectly.

For example, in `foo{bar=~"[a-z]{1,3}"}`, `{` and `}` are regex special
characters, so regex highlighting is expected. However, in
`foo{path="/foo/{id}"}`, `{` and `}` are just part of the string and
have no special meaning, so the whole value should be highlighted as a
string.
</content>
</entry>
<entry>
<title>chore(tests): consistent captures</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-12-24T11:52:21Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=10dd49958c96f86c8247c715bd20a6681afc1d8b'/>
<id>urn:sha1:10dd49958c96f86c8247c715bd20a6681afc1d8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(yaml): promql injections block</title>
<updated>2023-09-15T10:53:44Z</updated>
<author>
<name>Christian Segundo</name>
<email>christian.segundo@cabify.com</email>
</author>
<published>2023-09-15T10:22:26Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=831dbb619e0e00d52fe7e636d28dddb683013666'/>
<id>urn:sha1:831dbb619e0e00d52fe7e636d28dddb683013666</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(promql,yaml): add parser and yaml injections</title>
<updated>2023-07-18T07:03:11Z</updated>
<author>
<name>Michael Hoffmann</name>
<email>mhoffm@posteo.de</email>
</author>
<published>2023-07-08T17:44:16Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=b64ea2ec444c27efd8d3bd2377a8b24589954363'/>
<id>urn:sha1:b64ea2ec444c27efd8d3bd2377a8b24589954363</id>
<content type='text'>
Signed-off-by: Michael Hoffmann &lt;mhoffm@posteo.de&gt;
</content>
</entry>
<entry>
<title>ci: add injection tests</title>
<updated>2021-12-20T17:16:45Z</updated>
<author>
<name>Stephan Seitz</name>
<email>stephan.seitz@fau.de</email>
</author>
<published>2021-11-27T12:30:13Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=a3862c9802a3695b35eabfcd458236f93b54810b'/>
<id>urn:sha1:a3862c9802a3695b35eabfcd458236f93b54810b</id>
<content type='text'>
</content>
</entry>
</feed>
