aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/wing/class.w
Commit message (Collapse)AuthorAgeFilesLines
* feat(wing): add many missing highlightsRiley Bruins2024-09-021-2/+4
| | | | ...as well as some fold and injection queries.
* feat: more `@keyword.type` capturesRiley Bruins2024-05-011-1/+1
|
* fix(wing): update to new repo (#6446)Mark McCulloh2024-04-141-1/+1
|
* Revert "ci(tests): drop flaky wing parser tests"Christian Clason2024-04-141-0/+19
| | | | | | This reverts commit f08a9d97f7a2ac02115a5c1c8e3973b2634d996b. (Fixed by skipping bindings when generating.)
* ci(tests): drop flaky wing parser testsChristian Clason2024-04-131-19/+0
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* chore(tests): consistent capturesChristian Clason2024-01-191-11/+11
|
* fix(wing): update parser and queries, add maintainer (#5671)Mark McCulloh2023-11-131-2/+2
|
* feat(wing): add parser (#5021)Glib Shpychka2023-06-291-0/+19
Co-authored-by: Christian Clason <c.clason@uni-graz.at> Co-authored-by: ObserverOfTime <chronobserver@disroot.org>