<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/promql/injections.scm, branch fix/lua</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/promql/injections.scm?h=fix%2Flua</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/promql/injections.scm?h=fix%2Flua'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/'/>
<updated>2025-05-12T16:43:40Z</updated>
<entry>
<title>feat!: drop modules, general refactor and cleanup</title>
<updated>2025-05-12T16:43:40Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-06-12T15:54:30Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=692b051b09935653befdb8f7ba8afdb640adf17b'/>
<id>urn:sha1:692b051b09935653befdb8f7ba8afdb640adf17b</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>feat: more comment injections</title>
<updated>2024-06-15T08:40:34Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-06-08T04:33:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=9d68e876cce94fc9f8f8819da0c956a4429a3766'/>
<id>urn:sha1:9d68e876cce94fc9f8f8819da0c956a4429a3766</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: query formatting</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2024-01-06T06:05:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9'/>
<id>urn:sha1:57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore(injections)!: update injection syntax to 0.9</title>
<updated>2023-08-12T15:34:15Z</updated>
<author>
<name>Pham Huy Hoang</name>
<email>hoangtun0810@gmail.com</email>
</author>
<published>2023-05-03T10:07:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5'/>
<id>urn:sha1:78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5</id>
<content type='text'>
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter

- update health check
- update doc
</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>
</feed>
