aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-451/+0
|
* feat(go): string regex highlightsRiley Bruins2024-12-151-0/+15
|
* fix(go): properly apply injections in stringsRiley Bruins2024-12-151-6/+9
|
* bot(lockfile): update c, cpp, css, go, idl, nix, python, rubynvim-treesitter-bot[bot]2024-08-171-1/+1
|
* fix(go): narrow down } usagePhạm Huy Hoàng2024-07-051-2/+13
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-3/+6
|
* fix(go): update queries from upstreamAmaan Qureshi2024-04-101-1/+1
| | | | also bump templ to match
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-213-34/+24
|
* feat(format-scripts): linewrap predicates再生花2024-02-232-3/+10
| | | "format-ignore".kick()
* fix(go): fix eq to any-ofIlya Ilyinykh2024-02-011-1/+1
|
* feat(go): printf injectionsIlya Ilyinykh2024-02-011-2/+2
| | | | | | | | | | | | https://pkg.go.dev/fmt#pkg-index https://pkg.go.dev/fmt#Fscanf https://pkg.go.dev/fmt#Appendf https://pkg.go.dev/fmt#Sscanf https://pkg.go.dev/testing#T.Skipf https://pkg.go.dev/testing#F.Logf The problem covered here: https://github.com/nvim-treesitter/nvim-treesitter/issues/2917
* chore: query formattingPham Huy Hoang2024-01-195-172/+173
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-191-2/+2
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-192-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@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`
* feat(injections): add printf format stringsObserverOfTime2024-01-191-0/+14
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-27/+27
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-4/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* feat: add DoxygenAmaan Qureshi2023-08-261-1/+1
|
* feat: add re2cAmaan Qureshi2023-08-241-3/+7
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-2/+9
| | | | | | | | | 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
* feat(go): add `max` and `min` to `@function.builtin`Yuki Ito2023-08-101-0/+2
|
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* lint(locals): use `#set!` to keep query linter happyChristian Clason2023-06-221-5/+5
|
* fix(go): properly highlight chan/map (#4875)Amaan Qureshi2023-05-301-2/+2
|
* fear(go): add `clear` to `@function.builtin`Yuki Ito2023-05-261-2/+3
|
* highlights(go): add some highlightsmohsen2023-05-211-4/+10
| | | | | | | - added missing operators - added iota constant - added comparable type - edited go keyword types
* feat(go): highlight constructors, remove _ as `@constant`Amaan Qureshi2023-05-021-3/+8
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-8/+8
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-6/+32
|
* fix(go): Indent on type switch case properlyEvan Phoenix2023-03-031-0/+1
|
* fix(go): apply indents in a communication case in a select statementAmaan Qureshi2023-02-241-0/+1
|
* feat(go): add folds for type switch and switch casesLaytan Laats2023-02-191-0/+4
|
* injections(go): inject regex into some regexp functionsStephan Seitz2022-12-221-0/+12
|
* highlights(go): add `@label`Stephan Seitz2022-12-041-0/+2
|
* add golang type definition highlightViorel Craescu2022-11-211-0/+1
|
* feat(spell): support more languagesLewis Russell2022-09-261-4/+2
|
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+8
|
* indents(go): no indent at all composite_literal, indent at struct_typeStephan Seitz2022-08-151-1/+1
|
* injections(go): avoid running queries on all commentsStephan Seitz2022-08-061-5/+0
| | | | | Fixes #3187 Fixes #3263
* go folds.scm composit_literalray-x2022-08-051-0/+2
|
* indents(go): improve `@branch` rulesStephan Seitz2022-08-051-1/+2
| | | | | | | | - Don't branch at `case` - Let `import_spec_list`/`var_declaration` behave like `const_declaration` Fixes #2166
* Split func/method definition from calls in Go highlighting querieslfenzo2022-08-031-2/+2
|
* add go1.18 any typeViorel Craescu2022-07-101-0/+1
|
* remove type definitionViorel Craescu2022-07-091-1/+0
|
* add type def highlight, add field declaration highlight and remove constant ↵Viorel Craescu2022-07-091-3/+2
| | | | highlight
* add method spec highlight and block folds (#3151)Viorel Craescu2022-07-092-0/+4
|
* fix(go): indent const declarationkiyan2022-07-081-0/+2
| | | | https://github.com/nvim-treesitter/nvim-treesitter/issues/3104
* Highlight named fields in struct literalsPieter van Loon2022-07-081-0/+3
|
* fix(go): reduce indent after },)Akin Sowemimo2022-04-181-0/+5
|
* Add c injection for cgo commentskraftwerk282022-04-111-0/+5
|