aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ql
Commit message (Collapse)AuthorAgeFilesLines
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-2/+5
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-194-30/+65
|
* 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-16/+16
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-2/+3
| | | | | | | | | 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
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-4/+4
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-2/+3
|
* update testsAlvaro Muñoz2023-01-311-8/+8
|
* fix(ql): Add moduleMember to indent fileAlvaro Muñoz2023-01-311-0/+1
|
* highlights(ql): use more specific groupsObserverOfTime2022-11-261-8/+13
|
* feat(ql): add folding queriesAlvaro Muñoz2022-11-051-0/+7
|
* highlights(ql): follow upstream refactor of qualModuleExprStephan Seitz2022-08-151-2/+1
| | | | https://github.com/tree-sitter/tree-sitter-ql/commit/13155b740d4040e74727a9a698277805498a6a85
* 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
* replace @class with @typeAlvaro Muñoz2021-04-231-3/+3
|
* Add Codeql indents.scmAlvaro Muñoz2021-04-232-5/+28
|
* Mark several invalid queriesStephan Seitz2021-03-161-1/+2
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+5
| | | Closes #236
* More improvementsAlvaro Muñoz2020-11-121-0/+2
|
* QL: support modulesAlvaro Muñoz2020-11-121-0/+3
|
* improce type highlightingAlvaro Muñoz2020-11-111-0/+1
|
* minor improvments for QLAlvaro Muñoz2020-11-071-1/+3
|
* make query-checker happyAlvaro Muñoz2020-10-011-1/+1
|
* change module to namespaceAlvaro Muñoz2020-10-011-1/+1
|
* CodeQL locals.scm queriesAlvaro Muñoz2020-10-011-0/+29
|
* fine tune keyword highlightsAlvaro Muñoz2020-09-301-23/+41
|
* remove locals.scmAlvaro Muñoz2020-09-301-26/+0
|
* remove non-used capturesAlvaro Muñoz2020-09-301-18/+18
|
* initial support for CodeQLAlvaro Muñoz2020-09-302-0/+129