aboutsummaryrefslogtreecommitdiffstats
path: root/queries/r
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-124-205/+0
|
* chore: remove r locals executable statusRiley Bruins2024-08-251-0/+0
|
* fix: prevent double indent from pipesOliver Thomas2024-07-311-2/+0
|
* fix(r): resolve highlight regressionsRiley Bruins2024-06-291-6/+11
|
* fix(r): adapt indent queriesPhạm Huy Hoàng2024-06-281-1/+3
| | | | | | | - Anchor parameter query. There's no need for multiple indent.align captures - Narrow down binary_operator indent.begin. From tree-sitter-r corpus and highlight tests, this seems to be appropriate.
* feat(r)!: update parser and queriesChristian Clason2024-06-273-120/+107
|
* feat(awk,cmake,python,r,starlark): deactivate spelling in shebangsKai Moschcau2024-05-011-1/+1
|
* fix(r): highlight comma separatorsRiley Bruins2024-04-161-0/+2
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-32/+29
|
* chore: format queriesPhạm Huy Hoàng2024-01-212-6/+6
|
* chore: query formattingPham Huy Hoang2024-01-194-71/+98
|
* 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`
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-6/+6
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+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.
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-1/+2
| | | | | | | | | 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
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* docs: fix typosdundargoc2023-03-291-1/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-8/+8
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* split delimiter into open_delimiter and close_delimiterGeorge Harker2023-03-241-1/+2
|
* move 'in' to repeatPedro Castro2022-12-311-1/+1
|
* fix testPedro Castro2022-12-311-1/+1
|
* r: move inf to constant.builtinPedro Castro2022-12-311-1/+1
|
* r: update highlightsPedro Castro2022-12-311-9/+26
|
* indents(r): support special operatorPedro Castro2022-11-291-0/+2
| | | | Close #3879
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-0/+3
|
* highlights(r): add spellMaximilian Muecke2022-10-151-1/+1
|
* r(indents): fix brace_list alignmentPedro Castro2022-03-291-4/+1
|
* r(highlights): fix default_parameterPedro Castro2022-03-281-1/+3
|
* r(highlights): add default parameter/argument (#2688)Pedro Castro2022-03-281-9/+6
| | | | | * Update lockfile.json * r(highlights): default argument/parameter and some updates
* injections(r): add commentPedro Castro2022-03-191-0/+1
|
* indents(r): fix all R testsStephan Seitz2022-02-051-7/+2
|
* indents(r): update @indent groupPedro Castro2022-01-291-1/+3
|
* indents(r): add indents supportPedro Castro2022-01-291-0/+36
|
* highlights(r): highlight string_escape, change parameter priority and update ↵Pedro Castro2022-01-281-4/+8
| | | | pipe
* highlights(r): change groups priorityPedro Castro2022-01-221-16/+17
|
* r add new highlightsaspeddro2021-11-181-13/+42
|
* r add new highlightsaspeddro2021-11-121-0/+2
|
* r: add new operatoraspeddro2021-11-121-0/+1
|
* Use `@keyword.function` consistentlySergio Alejandro Vargas2021-07-061-1/+3
|
* Add `definition.parameter` query to 'r/locals.scm'.echasnovski2021-03-161-1/+1
|
* Update queries for R language.echasnovski2021-03-162-9/+9
|
* Add support for R language.echasnovski2021-03-162-0/+97