<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nvim-treesitter/queries/gomod, branch main</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/gomod?h=main</id>
<link rel='self' href='http://git.sudomsg.com/mirror/nvim-treesitter/atom/queries/gomod?h=main'/>
<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(gomod): support `tool` directive (#7649)</title>
<updated>2025-02-19T16:28:07Z</updated>
<author>
<name>Yuki Ito</name>
<email>mrno110y@gmail.com</email>
</author>
<published>2025-02-19T16:28:07Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=e5588abcfa4d7fc28ce615b4334338bbd25a386b'/>
<id>urn:sha1:e5588abcfa4d7fc28ce615b4334338bbd25a386b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(gomod): punctuation, toolchain highlights</title>
<updated>2024-12-02T07:38:30Z</updated>
<author>
<name>Riley Bruins</name>
<email>ribru17@hotmail.com</email>
</author>
<published>2024-12-01T22:29:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=2444c8052f2edbaaa92c0131cec77a63658ccc47'/>
<id>urn:sha1:2444c8052f2edbaaa92c0131cec77a63658ccc47</id>
<content type='text'>
Reference file:

```gomod
module github.com/klauspost/reedsolomon

go 1.21

require github.com/klauspost/cpuid/v2 v2.2.8

require golang.org/x/sys v0.24.0 // indirect

retract (
	v1.12.2 // https://github.com/klauspost/reedsolomon/pull/283
	v1.11.6 // https://github.com/klauspost/reedsolomon/issues/240
	[v1.11.3, v1.11.5] // https://github.com/klauspost/reedsolomon/pull/238
	v1.11.2 // https://github.com/klauspost/reedsolomon/pull/229
)
```
</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>feat!: align standard captures with upstream</title>
<updated>2024-01-19T15:58:37Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2023-12-24T09:00:20Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=1ae9b0e4558fe7868f8cda2db65239cfb14836d0'/>
<id>urn:sha1:1ae9b0e4558fe7868f8cda2db65239cfb14836d0</id>
<content type='text'>
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.

Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.

Specifically:

* tree-sitter "standard capture names"
  (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72):

  - `@parameter` -&gt; `@variable.parameter`
  - `@field` -&gt; `@variable.member`
  - `@namespace` -&gt; `@module`
  - `@float` -&gt; `@number.float`
  - `@symbol` -&gt; `@string.special.symbol`
  - `@string.regex` -&gt; `@string.regexp`
  - `@text.*` -&gt; `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
  - `@text.title` -&gt; `@markup.heading`
  - `@text.literal` -&gt; `@markup.raw`
  - `@text.reference` -&gt; `@markup.link`
  - `@text.uri` -&gt; `@markup.link.url` (in markup links)
  - `@string.special` -&gt; `@markup.link.label` (non-url links)
  - `@punctuation.special` -&gt; `@markup.list` (markdown lists only; move subitems from `@text.todo`)

* Helix captures
  (https://docs.helix-editor.com/master/themes.html#syntax-highlighting):

  - `@method` -&gt; `@function.method`
  - `@method.call` -&gt; `@function.method.call`
  - `@text.{todo,warning,note,danger}` -&gt; `@comment.{error,warning,hint,info,todo}`
  - `@text.diff.{add,delete,}` -&gt; `@diff.{plus,minus,delta}`
  - `@text.uri` -&gt; `@string.special.url` (outside markup)
  - `@preproc` -&gt; `@keyword.directive`
  - `@define` -&gt; `@keyword.directive`(`.define`?)
  - `@storageclass` -&gt; `@keyword.storage`
  - `@conditional` -&gt; `@keyword.conditional`
  - `@debug` -&gt; `@keyword.debug`
  - `@exception` -&gt; `@keyword.exception`
  - `@include` -&gt; `@keyword.import`
  - `@repeat` -&gt; `@keyword.repeat`

* cleanup

  - remove some redundant `@conceal` (but still allow it for conceal-only patterns)
  - remove obsolete `@error` (syntax linting is out of scope for this repo)
  - sort, cleanup capture list in `CONTRIBUTING.md`
</content>
</entry>
<entry>
<title>feat(gomod): highlight the `toolchain` directive (#5795)</title>
<updated>2023-12-15T19:01:31Z</updated>
<author>
<name>Vincent Rischmann</name>
<email>vincent@rischmann.fr</email>
</author>
<published>2023-12-15T19:01:31Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=000f71842bf08840df1e70004b17507fa92b2fb7'/>
<id>urn:sha1:000f71842bf08840df1e70004b17507fa92b2fb7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: @spell on comments</title>
<updated>2023-09-12T15:34:58Z</updated>
<author>
<name>Jaehwang Jung</name>
<email>tomtomjhj@gmail.com</email>
</author>
<published>2023-09-12T15:25:01Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=9567185621e532a9e29a671c66a11011334b80ea'/>
<id>urn:sha1:9567185621e532a9e29a671c66a11011334b80ea</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>highlight for module path</title>
<updated>2023-02-18T00:54:18Z</updated>
<author>
<name>ray-x</name>
<email>rayx.cn@gmail.com</email>
</author>
<published>2023-02-16T09:17:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=0493aa026bd726b762004a7e78ccb19471e47daa'/>
<id>urn:sha1:0493aa026bd726b762004a7e78ccb19471e47daa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for new golang `go.work` files</title>
<updated>2021-12-18T19:02:08Z</updated>
<author>
<name>Omer Tuchfeld</name>
<email>otuchfel@redhat.com</email>
</author>
<published>2021-12-16T21:40:06Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=3b05ef44927cc245d2c68873d0a526592d3f93cd'/>
<id>urn:sha1:3b05ef44927cc245d2c68873d0a526592d3f93cd</id>
<content type='text'>
The new golang 1.18 version (currently in beta) [introduced](https://github.com/golang/go/issues/45713) a new file type
called `go.work`.

This commit adds support for the syntax of that file using the https://github.com/omertuc/tree-sitter-go-work repository
That repository is heavily based on previous work in the https://github.com/camdencheek/tree-sitter-go-mod repository, with a few
minor changes to make it work on the very similar `go.work` files.
</content>
</entry>
<entry>
<title>Add go-mod tree-sitter config</title>
<updated>2021-04-28T15:37:33Z</updated>
<author>
<name>Camden Cheek</name>
<email>camden@ccheek.com</email>
</author>
<published>2021-04-27T21:17:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/nvim-treesitter/commit/?id=07fc8cc20e2140d90146f9dcf9c3c776bf1c1e99'/>
<id>urn:sha1:07fc8cc20e2140d90146f9dcf9c3c776bf1c1e99</id>
<content type='text'>
Adds a tree-sitter config for go.mod files as well as highlighting
queries.
</content>
</entry>
</feed>
