aboutsummaryrefslogtreecommitdiffstats
path: root/queries/nix
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-549/+0
|
* injections(nix): add nixosTest.testScript + home-manager nvim configMarc Jakobi2025-05-121-0/+29
| | | | | | (+ add Check to mkDerivation bash matches) (+ add Check to mkDerivation bash matches)
* fix(nix): shorter sub-attribute function highlight query (#7579)Baraa Homsi2025-01-221-11/+3
|
* fix(nix): highlight functions when part of a set (#7547)Baraa Homsi2025-01-191-26/+38
| | | | | | | * feat(nix): Fix function highlights when part of a set * fix(nix): Highlight only the last identifier node in functions * fix(nix): Higher precedence for builtins compared to functions and member vars
* fix(formatter): simplify code, remove odd line breakRiley Bruins2024-10-261-2/+1
|
* feat(nix): indentation queriesRiley Bruins2024-07-051-0/+75
|
* feat(nix): misc cleanups + comment injection (#6418)Riley Bruins2024-04-092-24/+32
| | | | | | | | | * fix(nix): highlight strings within interpolations * feat(nix): move `derivation` to function.builtin * fix(nix): removes all `priority` workarounds * feat(nix): arbitrary injections using `#` comments
* fix(nix): highlight ellipsis as builtin parameterRiley Bruins2024-04-011-1/+1
| | | | | | This maintains consistency with a lot of other languages that also have ellipses as parameter types, which we typically highlight as `@variable.parameter.builtin`
* feat(nix): misc. operator/punctuation highlightsRiley Bruins2024-04-011-0/+7
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-160/+127
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-4/+26
| | | "format-ignore".kick()
* Fixup format (#5934)Phạm Huy Hoàng2024-01-201-0/+1
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* chore: query formattingPham Huy Hoang2024-01-193-120/+242
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-191-10/+12
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-191-12/+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(locals)!: switch to upstream capturesChristian Clason2024-01-191-8/+8
|
* feat(nix): some highlight improvementsMarc Jakobi2023-10-121-1/+14
| | | | | - functions - builtin functions with prefix - add test file
* injections(nix): dynamic language injection via commentsfigsoda2023-10-011-0/+9
|
* feat: @spell on commentsJaehwang Jung2023-09-121-1/+1
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-43/+66
| | | | | | | | | 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(nix): highlight hpath_expressions as `@string.special`Stephen Huan2023-07-061-1/+1
|
* injections(nix): remove `@combined`figsoda2023-01-111-1/+0
|
* fix(nix): reduce injection false positivesfigsoda2023-01-111-1/+1
|
* injections(nix): combine injections to work better with interpolationsfigsoda2022-12-232-1/+13
|
* highlights(nix): improve builtins and exceptions highlightsfigsoda2022-12-231-9/+21
|
* highlights(nix): add all builtinsfigsoda2022-12-231-98/+15
|
* highlights(nix): improve highlightsfigsoda2022-12-231-28/+120
|
* injections(nix): fix runCommand*figsoda2022-12-231-7/+7
|
* injections(nix): add injections for builtins.matchfigsoda2022-11-241-0/+8
|
* injections(nix): add injections for code blocksfigsoda2022-11-241-0/+89
| | | | based on https://github.com/cstrahan/tree-sitter-nix/pull/31
* highlights(nix): highlight parametersfigsoda2022-11-241-2/+7
|
* fix(nix): update parser and queriesMinijackson2022-05-243-42/+28
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236
* highlights(nix): fix for alias name of identifier in attrpathStephan Seitz2021-02-121-3/+3
|
* Nix escape sequencesleo602282020-11-221-0/+3
|
* nullleo602282020-11-221-0/+3
|
* Fix unary - precedenceleo602282020-11-221-12/+12
|
* Correct `or` commentleo602282020-11-221-1/+1
|
* indented_str -> indented_stringleo602282020-11-221-1/+1
|
* Add fields to Nix highlightingleo602282020-11-221-0/+4
|
* Initial Nix queriesleo602282020-11-223-0/+136