aboutsummaryrefslogtreecommitdiffstats
path: root/queries
Commit message (Collapse)AuthorAgeFilesLines
...
* feat: folds for git config filesPhạm Huy Hoàng2024-01-201-1/+2
|
* fix(markdown_inline): prioritize link URI (#5935)Riley Bruins2024-01-201-12/+12
|
* fix(rust): add `const_item` to foldsAmaan Qureshi2024-01-201-0/+1
|
* fix(rust): Add back 1 indent for macro rules (#5834)Pham Huy Hoang2024-01-201-0/+10
|
* feat(meson): add indents.scmJędrzej Boczar2024-01-201-0/+25
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-2034-0/+43
| | | | | | | * fix(format): newline between top-level field defs * fixup: newline between node and comment * fixup: optimize pattern
* fix(markdown): remove @none from code fencesRiley Bruins2024-01-201-2/+0
|
* feat(html): comment injectionsRiley Bruins2024-01-201-0/+2
|
* fix(python): add support for typed (kw)args (PEP 484) (#5875)Zeb Nicholls2024-01-191-4/+14
|
* fix(css): make the highlights more sensibleObserverOfTime2024-01-193-25/+31
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-1929-77/+88
|
* fix(highlights): improve consistencyObserverOfTime2024-01-1922-76/+62
|
* feat(git_config): add missing injectionsObserverOfTime2024-01-191-0/+8
|
* chore(rust): tweak injections, add json macro injectionAmaan Qureshi2024-01-191-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-19674-12541/+18359
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-1937-1595/+1656
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat: query formatting scriptPham Huy Hoang2024-01-191-0/+3
| | | | | | | | Usage: - nvim -l scripts/format-queries.lua /path/to/file.scm - nvim -l scripts/format-queries.lua /path/to/dir fixup: add `format-ignore` directive to query/highlights.scm
* feat!: align standard captures with upstreamChristian Clason2024-01-19217-1963/+1960
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(injections): add printf format stringsObserverOfTime2024-01-1910-0/+169
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-19107-1313/+1313
|
* fix: link type in pattern matching correctlyBartek Łuka2024-01-151-0/+3
|
* highlights(html): character references (a.k.a. entities)Calum Smith2024-01-051-0/+2
|
* fix(markdown_inline): latex highlight injection (#5397)Zhuofeng Wang2024-01-051-1/+2
| | | | The `injection.include-children` is needed in markdown_inline parser.
* fix(latex): highlight text functionsRiley Bruins2024-01-041-0/+1
|
* fix(julia): add missing capture of ":" in selected importChristian Degnbol Madsen2024-01-021-0/+2
| | | | If writing a selected import, e.g. `using BSON: @load`, the colon isn't currently captured. This change captures it as `@punctuation.delimiter`.
* fixup(luau): align `@string.regex` to the injections (#5829)Riley Bruins2023-12-241-15/+3
|
* fix: cleanup luap injection queriesRiley Bruins2023-12-232-41/+5
|
* feat: more `@string.regex` highlightsRiley Bruins2023-12-233-0/+62
|
* feat(luap): highlights more consistent with regex (#5819)Riley Bruins2023-12-232-9/+11
|
* fix(julia): pipe function highlight (#5815)Christian Degnbol Madsen2023-12-221-0/+6
| | | | In Julia when piping into a function the function should be highlighted as a function call, and not a variable.
* fix(cpp): incorrect indent of class with opening { on new line (#5811)Jędrzej Boczar2023-12-221-2/+0
|
* vimdoc: add note, warning, deprecated (#5817)Christian Clason2023-12-211-0/+6
|
* Add @nospell annotation to label definitions and referencesAhnaf Rafi2023-12-211-0/+3
|
* highlights(haskell): add `fail` to exception highlightsMarc Jakobi2023-12-201-0/+1
|
* highlights(haskell): namespaced string quasiquoteMarc Jakobi2023-12-201-1/+9
|
* feat: add tree-sitter-styled (#5735)Mark Skelton2023-12-195-4/+8
| | | | | | | | | | | | | * Add styled parser * Add queries * Update highlights * Remove unnecessary highlights * Update injections to use the styled grammar * Remove requires npm
* fix(rust): highlight inline attributes properlyRiley Bruins2023-12-181-0/+1
|
* fix(nim): minor improvements to queries and parser (#5784)aMOPel2023-12-193-51/+54
| | | | | | | | * fix(nim): bump parser again to include minor fix * fix(nim): shifting around for precedence * fix(nim): added new fields from recent parser version, improved support for (conditional_declaration) and (variant_declaration)
* feat(gomod): highlight the `toolchain` directive (#5795)Vincent Rischmann2023-12-151-0/+1
|
* fix(v): adapt to removed scanner.cChristian Clason2023-12-151-3/+3
|
* fix(python): restrict typed parameter highlightObserverOfTime2023-12-141-1/+1
| | | | Only the name is a parameter and not the value
* fix(python): highlight variadic lambda parametersObserverOfTime2023-12-141-0/+6
|
* indents added new language highlights added (#5777)r0012023-12-102-0/+35
|
* feat(poe_filter): add new Import statementObserverOfTime2023-12-091-1/+4
|
* fix(vim): highlight 'scriptencoding' commandObserverOfTime2023-12-091-0/+5
|
* feat(gitcommit): add highlight group for subject_prefix (#5774)gbprod2023-12-091-0/+1
|
* fix(java): move attributes after constantsObserverOfTime2023-12-041-9/+9
|
* feat: add rbs parser support (#5745)Tomohiro Hashidate2023-12-014-0/+148
|
* feat(nim): added some captures and fixed some bugs (#5664)aMOPel2023-12-011-25/+78
| | | | | | | | | | | | | | | | * fix(nim): literals in pragmas in types would be falsly highlighted as `@variable` * style(nim): removed trailing whitespace * fix(nim): identifiers in (type_expression (pragma_expression)) would be captured as `@type` * fix(nim): changed generic parameters when declaring from @type to @parameter * feat(nim): added @constant capture for (identifier)s x, y in `array[x..y, type]` * feat(nim): added @function.call capture for (identifier)s in second argument to `varargs[type, routine]`
* fix(markdown): revert bullet conceals due to spacing issues (#5742)Riley Bruins2023-11-301-17/+21
|