aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ecma
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-743/+0
|
* feat(typescript): highlight awaited functions with type parametersOmar Valdez2025-02-101-0/+12
|
* feat(javascript): update parser and queriesAmaan Qureshi2024-09-021-52/+23
|
* feat(glimmer): add glimmer-javascript and glimmer-typescript (#7064)NullVoxPopuli2024-08-312-7/+0
|
* feat(ecma): inject sql template methodsDimensionalDot2024-08-021-0/+19
|
* feat(highlights): capture wildcard imports as `@character.special`Omar Valdez2024-08-011-5/+13
|
* fix(ecma): indent single-line if statements (#6846)Riley Bruins2024-07-041-4/+9
| | | Fixes #5898.
* feat(predicates)!: rename `has-type` to `kind-eq` to align with HelixChristian Clason2024-06-021-3/+3
| | | | No point in having a different name for the same predicate.
* feat: standardize and document export keywordsRiley Bruins2024-05-131-13/+2
| | | | | | Many export keywords are captured as `@keyword.import`. This commit makes it so they are all captured like that, and mentions it in the documentation.
* fix(ecma): template string injections (#6590)Ananda Umamil2024-05-071-9/+9
|
* feat(ecma) fold `array` (#6564)Jakub Donovan2024-05-031-0/+1
|
* feat(ecma): inject async template functionsDimensionalDot2024-05-021-10/+34
|
* feat: import statement folds for common languagesRiley Bruins2024-05-011-1/+1
|
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-1/+2
|
* feat(glimmer): highlight builtin tagsNullVoxPopuli2024-04-261-0/+4
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-212-155/+115
|
* * feat(ecma): styled injection for `css` and `keyframes`Mark Skelton2024-03-131-2/+15
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+9
| | | "format-ignore".kick()
* feat(ecma): folding for function argumentsRiley Bruins2024-02-201-0/+1
|
* refactor(ecma): delimiter highlight consolidationRiley Bruins2024-02-171-17/+6
|
* feat(ecma): highlight label identifiersRiley Bruins2024-02-161-0/+2
|
* feat(ecma): highlight decorator and destructuringAnanda Umamil2024-02-101-4/+17
|
* chore(ecma,jsx): update parser and queriesAmaan Qureshi2024-01-314-8/+24
|
* feat(angular)!: switch to parser supporting v17 (#5779)Dennis van den Berg2024-01-271-0/+62
|
* chore: format queriesPhạm Huy Hoàng2024-01-213-6/+5
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-191-3/+3
|
* chore: query formattingPham Huy Hoang2024-01-194-186/+243
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-15/+15
|
* feat: add tree-sitter-styled (#5735)Mark Skelton2023-12-191-4/+4
| | | | | | | | | | | | | * Add styled parser * Add queries * Update highlights * Remove unnecessary highlights * Update injections to use the styled grammar * Remove requires npm
* fix(ecma): prioritize builtinsAmaan Qureshi2023-11-101-16/+19
|
* fix(ecma_injections): limit function names to alphanumeric characters onlyTobias S2023-08-311-0/+1
|
* fix(ecma): fix no injections for innerHTML (#5258)Pham Huy Hoang2023-08-161-5/+10
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-40/+52
| | | | | | | | | 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
|
* feat(typescript): highlight decorators, default case, global declarationAnanda Umamil2023-07-171-0/+6
|
* feat(ecma): highlight regex flagsSergio A. Vargas2023-07-101-0/+1
|
* feat(pug): improve syntax highlightingObserverOfTime2023-07-071-0/+3
|
* refactor(ecma): triple dot should be an operatorAmaan Qureshi2023-06-091-2/+1
|
* feat(ecma): convert eligible `@keyword.operators`Ananda Umamil2023-06-041-4/+4
|
* highlights(typescript): `:` in `switch` statementAnanda Umamil2023-05-181-0/+1
|
* perf: remove match where possibleAmaan Qureshi2023-04-211-2/+2
|
* fix(ecma): comment should be `@indent.auto` (#4669)Amaan Qureshi2023-04-181-4/+4
|
* perf(ecma): remove GraphQL comment injection, use lua-match for gql template ↵Amaan Qureshi2023-04-151-5/+6
| | | | detection
* javascript: highlight more builtinsObserverOfTime2023-04-121-2/+63
| | | | Co-Authored-By: Sergey Berezhnoy <veged@ya.ru>
* feat(ecma): use lua-match for jsdoc injectionsAmaan Qureshi2023-04-031-1/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-16/+16
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* fix: svg injection in ecma tagged literalsBenny Powers2023-03-191-5/+5
|
* style: alternation in template literal queryBenny Powers2023-03-191-17/+18
|
* fix(ecma): template literal injectionsBenny Powers2023-03-191-0/+13
| | | | | see https://github.com/nvim-treesitter/nvim-treesitter/commit/e3ebc8ec5d586162f3c408417621daa59ba8ea62#commitcomment-104824257 for explanation This also assigns the HTML parser for SVG tagged literals, since svg uses the HTML parser