aboutsummaryrefslogtreecommitdiffstats
path: root/queries/fennel
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-124-434/+0
|
* feat(fennel)!: update parser and queries (#6460)Alexei Mozaidze2024-04-224-177/+209
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-13/+10
|
* feat(format-scripts): linewrap predicates再生花2024-02-232-68/+12
| | | "format-ignore".kick()
* feat(fennel)!: switch to maintained parser (#6132)Alexei Mozaidze2024-02-214-103/+394
| | | | Change the Fennel parser to a simpler and more consistent one, along with updating all the queries.
* chore: query formattingPham Huy Hoang2024-01-194-57/+77
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* 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
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* fix(fennel): capture method calls as `@method.call`Chinmay Dalal2023-07-311-1/+1
|
* fix(fennel): capture function calls as @function.callChinmay Dalal2023-06-211-2/+2
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-1/+1
|
* feat(spell): support lisp like languageskawas442023-03-291-2/+2
| | | | Add spell to commonlisp, scheme, racket, clojure and fennel.
* folds(fennel): add `let`, `fn`, `let_clause`, `quoted_list`, `local`, ↵Chinmay Dalal2023-01-091-1/+1
| | | | `global` folds
* folds(fennel): add fennel foldsChinmay Dalal2023-01-091-0/+1
|
* highlights(fennel): fix "collect" "icollect" "accumulate"Stephan Seitz2022-04-011-2/+8
| | | | | | They are now anonymous nodes. Fixes #2707
* properly bind function names to the parent scopeHarry Gallagher2022-03-121-2/+4
|
* feat(fennel): update parser and queriesOtto Modinos2021-09-302-27/+22
|
* fix(fennel): update parser and all the queriesOtto Modinos2021-09-102-144/+119
|
* 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
* Fix fennel queriesStephan Seitz2021-03-161-3/+4
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+1
| | | Closes #236
* Add fennel supportTravonteD2020-08-162-0/+168