aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-254/+0
|
* feat(go): string regex highlightsRiley Bruins2024-12-151-0/+15
|
* 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-211-3/+2
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+7
| | | "format-ignore".kick()
* chore: query formattingPham Huy Hoang2024-01-191-86/+67
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* 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(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
|
* 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
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-6/+32
|
* 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
|
* 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-091-0/+3
|
* Highlight named fields in struct literalsPieter van Loon2022-07-081-0/+3
|
* highlights(go): highlight `package_identifier` as `@namespace` (#2371)Stephan Seitz2022-01-281-1/+1
|
* highlights(go): highlights "~"Stephan Seitz2022-01-091-0/+1
| | | | | Follow upstream change https://github.com/tree-sitter/tree-sitter-go/commit/beb36fc9be211046d43a165eb8d885bcde6004a1
* Use `@keyword.function` consistentlySergio Alejandro Vargas2021-07-061-1/+1
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* highlights(go): modernize highlights.scmStephan Seitz2021-07-011-67/+106
|
* Use #any-of? instead of #match? where posibleJoakker2021-06-251-2/+9
|
* highlights(go): Highlight const_declarationStephan Seitz2021-04-071-0/+3
| | | | Fixes #1157
* go: add builtin typesYuki Ito2021-03-191-0/+6
|
* go: add builtin functionsYuki Ito2021-03-161-0/+7
|
* go: Add package_identifier as variablerockerBOO2020-12-101-0/+1
|
* ci: fix wrong queriesThomas Vigouroux2020-09-111-1/+1
|
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-3/+3
|
* fixes golang method highlights (overwritten by parameter in the ordering)winwisely2682020-07-221-15/+15
|
* Add highlights.scm for GoStephan Seitz2020-06-071-0/+136