aboutsummaryrefslogtreecommitdiffstats
path: root/queries/svelte
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-138/+0
|
* fix(svelte): `else if` highlight (#7797)Maksim Terpilovskii2025-04-041-0/+1
|
* feat(svelte): add javascript injection (#6540)Lucas Lopes2024-05-011-0/+11
|
* feat(highlights)!: keyword `@type.qualifier` → `@keyword.modifier`Jaehwang Jung2024-03-161-1/+1
|
* feat(format): extra newline after modelinePhạm Huy Hoàng2024-02-294-0/+4
|
* feat(svelte)!: switch upstream parserAmaan Qureshi2024-02-195-30/+48
|
* fix(svelte): correct formattingLevi Frandsen2024-02-011-5/+10
|
* fix(svelte): correct indents, add key blockLevi Frandsen2024-02-011-9/+12
| | | | resolves #6028
* chore: query formattingPham Huy Hoang2024-01-193-31/+31
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* refactor: remove `include-children` from queries (#5226)Pham Huy Hoang2023-09-121-8/+4
| | | These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-23/+24
| | | | | | | | | 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
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-3/+3
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* refactor(svelte): match certain keywords for conditional and exceptionAmaan Qureshi2023-03-031-0/+6
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-0/+3
|
* injections(svelte): add pug injectionObserverOfTime2023-02-111-0/+12
|
* refactor(svelte): Remove duplicated queriesLucario3872023-01-031-7/+4
| | | | | | These injection queries are defined already in html_tags, remove them Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* svelte query and lockfile updatedHimujjal Upadhyaya2022-04-131-0/+2
|
* feat(svelte): inject JS on `each` expression (#1969)elianiva2021-11-021-1/+4
|
* Use #any-of? instead of #match? where posibleJoakker2021-06-251-2/+2
|
* refactor: make html-like languages inherit from single queryelianiva2021-05-172-51/+4
|
* 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 svelte highlightsStephan Seitz2021-04-211-1/+1
|
* feat: add scss injection for svelte/vueelianiva2021-04-081-0/+9
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+2
|
* svelte: also capture src as text.urielianiva2021-02-281-1/+1
|
* fix: missing erroneous end tagelianiva2021-02-231-6/+15
|
* refactor: use eqelianiva2021-02-232-4/+4
|
* feat: improved highlight + injections, cc @stsewdelianiva2021-02-232-0/+31
|
* feat: add support for svelteelianiva2021-02-234-0/+70