aboutsummaryrefslogtreecommitdiffstats
path: root/queries/query
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-182/+0
|
* feat(query): highlights for dot-prefixed predicatesRiley Bruins2025-02-021-0/+3
|
* feat(query): highlights for missing nodesRiley Bruins2025-02-021-0/+5
|
* feat(highlights): capture wildcard patterns as `@character.special` (#7153)Omar Valdez2024-09-201-1/+1
|
* feat(query): highlight supertype "/" delimitersRiley Bruins2024-08-311-1/+4
|
* fix(query): proper indentation after quantifiersRiley Bruins2024-08-021-1/+6
|
* fix(query): properly apply predicate injectionsRiley Bruins2024-07-271-9/+9
| | | | | | I think these have been broken since the query parser update. Basically the inner node for the string content was preventing injections because include-children was not set.
* feat(query): Highlight key in set! directiveOmar Valdez2024-07-271-1/+10
|
* feat(query): adapt to upstream changesAmaan Qureshi2024-05-261-3/+0
|
* feat(query): pattern injections for new predicatesRiley Bruins2024-05-091-2/+2
|
* feat(latex, query, tablegen, thrift): disable spelling in shebangsKai Moschcau2024-05-011-3/+3
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-23/+18
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-1/+1
| | | "format-ignore".kick()
* feat(query): indents that reflect the formatter (#6154)Riley Bruins2024-02-211-4/+16
| | | | | * feat(query): indents that reflect the formatter Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
* chore: query formattingPham Huy Hoang2024-01-194-47/+91
|
* feat: query formatting scriptPham Huy Hoang2024-01-191-0/+3
| | | | | | | | Usage: - nvim -l scripts/format-queries.lua /path/to/file.scm - nvim -l scripts/format-queries.lua /path/to/dir fixup: add `format-ignore` directive to query/highlights.scm
* feat!: align standard captures with upstreamChristian Clason2024-01-191-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: more `@string.regex` highlightsRiley Bruins2023-12-231-0/+16
|
* fix(query): stricter match for `extends` directive (#5604)Azad2023-11-021-1/+1
|
* feat(query): use @function.call for predicateJaehwang Jung2023-10-031-1/+1
|
* refactor: replace some match & vim-match usagesObserverOfTime2023-08-231-2/+2
|
* injections(query): add gsub pattern (#4897)Pham Huy Hoang2023-08-121-0/+7
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-5/+8
| | | | | | | | | 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
* highlights(query): prefer lua-matchChristian Clason2023-05-211-2/+2
|
* allow no spaces for extend/inherit commentsEmilia Simmons2023-05-181-2/+2
|
* add multiple ; for highlightingEmilia Simmons2023-05-181-2/+2
|
* fix(query): allow multiline modeline (inherits/extends)Emilia Simmons2023-05-181-2/+2
|
* fix(query): add missing dedent for "]" (#4739)Pham Huy Hoang2023-05-011-0/+4
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-2/+2
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat(query): differentiate lua-match strings by using luap injections and ↵Amaan Qureshi2023-03-041-1/+8
| | | | fix offset matches
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-0/+3
|
* feat(spell): support more languagesLewis Russell2022-09-261-1/+1
|
* Query: update highlightsSantos Gallegos2021-12-241-1/+2
| | | | ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
* Query: update locals (#1692)Santos Gallegos2021-08-141-0/+1
|
* Query: highlight numbersSantos Gallegos2021-08-141-0/+3
|
* Query: update highlight queries (#1553)Santos Gallegos2021-07-131-6/+6
| | | This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
* query: Only highlight predicate name (#1461)Gregory Anders2021-07-011-1/+1
| | | | Only highlight the name of the predicate using TSFunction rather than the entire predicate block.
* 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
* Query: update highlights (#1175)Santos Gallegos2021-04-101-0/+4
|
* highlights(query): Add modeline query after bugfixStephan Seitz2021-03-161-3/+2
|
* Remove some broken queriesStephan Seitz2021-03-161-2/+3
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* removed duplicateBrian Shu2021-03-011-4/+0
|
* changed toml and queryBrian Shu2021-03-011-0/+12
|
* Query: highlight modelineSantos Gallegos2021-02-121-0/+3
| | | | | Matches the first comment and the beginning from the pattern https://github.com/neovim/neovim/blob/52397aaa0d1e2d4ce1320c73761cf316fc608ffb/runtime/lua/vim/treesitter/query.lua#L25
* Query: add foldsSantos Gallegos2021-02-111-0/+6
|
* Query: add regex injectionsSantos Gallegos2021-02-071-0/+4
|
* Query: add string.escapeSantos Gallegos2021-01-041-0/+1
| | | | Needs https://github.com/nvim-treesitter/tree-sitter-query/pull/5