aboutsummaryrefslogtreecommitdiffstats
path: root/queries/query/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* feat(query): Highlight key in set! directiveOmar Valdez2024-07-271-1/+10
|
* feat(query): adapt to upstream changesAmaan Qureshi2024-05-261-3/+0
|
* 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-211-12/+10
|
* chore: query formattingPham Huy Hoang2024-01-191-23/+57
|
* 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: 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
|
* 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
|
* 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: 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.
* 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
|
* 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 string.escapeSantos Gallegos2021-01-041-0/+1
| | | | Needs https://github.com/nvim-treesitter/tree-sitter-query/pull/5
* Query: update highlightsSantos Gallegos2020-09-041-0/+11
| | | | More color!
* rename query parser to query from schemeSteven Sojka2020-07-281-0/+8