aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ecma/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-392/+0
|
* feat(typescript): highlight awaited functions with type parametersOmar Valdez2025-02-101-0/+12
|
* feat(glimmer): add glimmer-javascript and glimmer-typescript (#7064)NullVoxPopuli2024-08-311-4/+0
|
* feat(highlights): capture wildcard imports as `@character.special`Omar Valdez2024-08-011-5/+13
|
* 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.
* 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-211-18/+13
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+9
| | | "format-ignore".kick()
* 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-311-6/+9
|
* chore: format queriesPhạm Huy Hoàng2024-01-211-2/+2
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-191-3/+3
|
* chore: query formattingPham Huy Hoang2024-01-191-97/+110
|
* 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`
* fix(ecma): prioritize builtinsAmaan Qureshi2023-11-101-16/+19
|
* 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
|
* javascript: highlight more builtinsObserverOfTime2023-04-121-2/+63
| | | | Co-Authored-By: Sergey Berezhnoy <veged@ya.ru>
* Partially Revert "fix(ecma): properly capture constants in const declarations"Amaan Qureshi2023-03-101-5/+0
| | | | This partially reverts commit c553e6c5608ba54e210e9131bf9ba5e36ef18e57.
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-3/+4
|
* fix(ecma): properly capture constants in const declarationsAmaan Qureshi2023-03-041-2/+7
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-38/+41
|
* highlights(ecma): limit constructor highlightObserverOfTime2023-02-031-2/+8
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-1/+1
| | | | | | | | | | After https://github.com/nvim-treesitter/nvim-treesitter/issues/470, we decided to use `@conditional` for ternary operator instead of operator despite `@conditional` is documented for keywords only. A sub-scoping can make it easier for people to highlight this operator group differently. Also unify the usage of `@conditional...` across languages.
* highlights(ecma): fix capturesObserverOfTime2022-11-261-2/+2
| | | | Co-Authored-By: Stephan Seitz <stephan.seitz@fau.de>
* Narrow as @include queryRaymond Ha2022-11-251-1/+5
|
* highlights(ecma): distinguish between "default" in export and switch statementsTrard2022-11-241-1/+5
|
* removed switch from keywordsTrard2022-11-211-1/+0
|
* highlights(ecma): add pair_pattern punctuation.delimiterMunif Tanjim2022-10-171-0/+1
|
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-4/+3
|
* feat(spell): support more languagesLewis Russell2022-09-261-2/+4
|
* highlights(ecma): use `@method.call`/`function.call`Stephan Seitz2022-09-111-2/+2
|
* highlights(ecma): Update queries for literalsSergio Alejandro Vargas2022-08-221-9/+22
| | | | | | | | | - Add queries for value properties: - undefined - NaN - Infinity - Highlight regex delimiters as brackets instead of punctuation - Format queries for literals
* highlights(javascript): "?." -> optional_chainGitHub2022-08-201-1/+0
|
* highlights(ecma): highlight escape_sequenceStephan Seitz2021-12-121-0/+1
|
* ecma: highlight private properties and methodsnumToStr2021-11-251-2/+3
|
* Prefer lua-match over matchLewis Russell2021-11-231-3/+3
| | | | as string.find is much quicker than vim.regex:match*
* fix: remove priority in ecma template substitution hlkiyan2021-10-031-9/+9
| | | | | | | This PR removes the priority override for the interpolation because it overrides every ecma based template literal, setting none with a higher priority than ecma groups which made every template string look `un`highlighted.
* Ecma: increase priority of template_substitutionSantos Gallegos2021-09-171-3/+3
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1688
* Use the color of variabledelphinus2021-09-091-1/+1
|
* Set property color for destructuring assignmentdelphinus2021-09-091-0/+4
|
* Enable to highlight shebang on JS/TSdelphinus2021-08-121-1/+4
|