aboutsummaryrefslogtreecommitdiffstats
path: root/queries/typescript
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-255/+0
|
* feat(typescript): highlight abstract methodsOmar Valdez2025-02-271-0/+3
|
* fix(typescript): don't highlight default values as parameters (#7599)Omar Valdez2025-01-301-2/+2
|
* feat: standardize and document export keywordsRiley Bruins2024-05-131-4/+0
| | | | | | 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-3/+6
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-8/+7
|
* 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
|
* chore(typescript,tsx): update parser and queriesAmaan Qureshi2024-01-311-0/+4
|
* chore: format queriesPhạm Huy Hoàng2024-01-211-2/+2
|
* chore: query formattingPham Huy Hoang2024-01-194-51/+101
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-7/+7
|
* fix(typescript): do not highlight undefined as variableMunif Tanjim2023-10-151-4/+0
|
* folds(typescript): add `enum_declaration`Stephan Seitz2023-08-271-0/+1
| | | | Fixes #5325
* feat(typescript): highlight decorators, default case, global declarationAnanda Umamil2023-07-171-0/+3
|
* feat(javascript): highlight parameter destructuring patternsAnanda Umamil2023-07-011-0/+6
|
* feat(typescript): update highlightsAmaan Qureshi2023-06-091-0/+18
|
* feat(ecma): convert eligible `@keyword.operators`Ananda Umamil2023-06-041-3/+6
|
* feat(typescript): highlight `is` and `:` in type predicateAnanda Umamil2023-06-041-0/+4
|
* feat(typescript): add non-null operatorAmaan Qureshi2023-05-091-0/+2
|
* fix(typescript): remove duplicate captureAmaan Qureshi2023-05-091-3/+0
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-1/+1
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat(typescript): add various missing function/method capturesAmaan Qureshi2023-03-221-0/+18
|
* highlights(typescript): `infer`, template literal type & punctuationsAnanda Umamil2023-03-111-0/+13
|
* highlights(typescript): add `module` keywordAnanda Umamil2022-12-131-0/+1
|
* highlights(typescript): use more specific groupsObserverOfTime2022-11-261-18/+24
|
* highlights(typescript): Fix as highlightRaymond Ha2022-11-251-0/+2
|
* highlights(typescript): add satisfies keyword (#3852)Raymond Ha2022-11-241-0/+1
|
* highlights(typescript): add override keywordObserverOfTime2022-10-151-0/+1
|
* highlights(javascript): "?." -> optional_chainGitHub2022-08-201-1/+3
|
* highlights(typescript): fix indentifier for type importsMunif Tanjim2021-07-011-0/+6
|
* locals(js,ts): Add parameters again (#1231)Stephan Seitz2021-04-281-0/+24
|
* Add JS/TS parameters again (#1227)Stephan Seitz2021-04-231-0/+25
| | | | | * highlights(js): add parameters * highlights(ts): add Typescript parameters
* Update jsonc to 0.19.0Stephan Seitz2021-03-161-64/+0
|
* Mark several invalid queriesStephan Seitz2021-03-161-0/+63
|
* Fix readonly keyword in typescriptStephan Seitz2021-03-161-2/+1
|
* chore: create ecma base for use in js and ts which fixes jsx issueskiyan2021-03-105-5/+5
|
* fix: added missing enum indent for typescriptelianiva2021-01-211-0/+1
|
* feat: added more indent querieselianiva2021-01-141-0/+6
|
* Javascript unary expression (#712)Dave Lage2020-12-121-2/+0
| | | | | | | | | * javascript: Move unary_expression matching. * javascript: Move unary_expression matching. * javascript: Update unary to operator * javascript: Update qnary to be more specific
* typescript: Use javascript shorthand_property_identifierrockerBOO2020-11-271-1/+0
|
* typescript: Add optional_parameter ?rockerBOO2020-11-221-2/+2
|
* Add type delimiters | &, Add optional type ?rockerBOO2020-11-151-0/+9
|
* Add additional punctuation, variable descriptors for TypescriptrockerBOO2020-11-151-0/+16
|
* feat(js): add jsdoc lang injectionSteven Sojka2020-10-271-0/+1
|
* feat(queries): modeline mechanism for base langsThomas Vigouroux2020-10-113-0/+5
| | | | | | | | This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
* Folds: rename query files to folds.scm to be consistentSantos Gallegos2020-09-141-0/+0
| | | | We use plural names for all query files except folds.
* feat(folds): add ts and js foldsSteven Sojka2020-09-061-0/+5
|
* fix(highlights): fix ts parameter highlightsSteven Sojka2020-09-061-2/+2
|