aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix(locals): index matches with split capture namesJames Trew2024-01-221-6/+6
|
* Update parsers: phpdoc, templ, wing, zathurarcGitHub2024-01-221-4/+4
|
* feat: add the zathurarc parser (#5948)wzy2024-01-215-0/+57
|
* fix(wgsl_bevy): Correct formatter mistakePhạm Huy Hoàng2024-01-221-1/+1
| | | | | | | Old version of `format-queries` incorrectly took away a space, creating a wrong capture. This is a fixup for that.
* chore: format queriesPhạm Huy Hoàng2024-01-2150-146/+143
|
* fix(format-scripts): remove parens if possiblePhạm Huy Hoàng2024-01-211-1/+26
|
* fix(jsdoc): add nospell to type and tag_nameSergey Slipchenko2024-01-211-2/+2
|
* docs(contributing): typos and examplesChristian Clason2024-01-211-9/+9
|
* feat(perl): add more highlightsVeesh Goldman2024-01-211-0/+3
|
* Update parsers: gleam, perl, templ, wingGitHub2024-01-211-4/+4
|
* fix(comments)!: consolidate note capturesChristian Clason2024-01-204-10/+9
| | | | | Distinguishing `hint` and `info` is too confusing; it's enough to have `error`, `warning`, `todo`, and `note`.
* feat: add the php_only parser included in tree-sitter-php (#5876)tk-shirasaka2024-01-2013-557/+574
| | | | | | | | Add parser `php_only` for PHP files without HTML embedded. Make queries for combined parser `php` inherit from `php_only` (no extensions needed). --------- Co-authored-by: shirasaka <tk.shirasaka@gmail>
* fix(highlights): use `markup.raw.delimiter` for fencesChristian Clason2024-01-203-6/+6
|
* 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-2010-0/+172
|
* Fixup format (#5934)Phạm Huy Hoàng2024-01-2035-3/+47
| | | | | | | * 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
|
* Update parsers: bashGitHub2024-01-201-1/+1
|
* 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
|
* Update parsers: printf, scalaGitHub2024-01-191-2/+2
|
* fix(css): make the highlights more sensibleObserverOfTime2024-01-193-25/+31
|
* fix(highlights): improve member/property distinctionObserverOfTime2024-01-1934-95/+106
|
* 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
|
* docs: update CONTRIBUTING.md with formattingChristian Clason2024-01-191-6/+17
|
* chore: query formattingPham Huy Hoang2024-01-19674-12541/+18359
|
* ci: add query lint jobPham Huy Hoang2024-01-191-0/+16
|
* 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-192-0/+399
| | | | | | | | 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
* test(queries): print ALL errors at endChristian Clason2024-01-191-12/+9
|
* feat!: align standard captures with upstreamChristian Clason2024-01-19263-2322/+2341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1960-873/+872
|
* feat(injections): add printf format stringsObserverOfTime2024-01-1913-0/+181
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-19109-1341/+1341
|
* revert "fix(config)!: always install parsers bundled with nvim"v0.9.2Christian Clason2024-01-191-17/+2
|
* Update parsers: scala, wingGitHub2024-01-191-2/+2
|
* fixup: proper union of tablesChristian Clason2024-01-181-1/+13
|
* Update parsers: gitcommit, markdown, markdown_inline, vimdoc, wingGitHub2024-01-181-5/+5
|
* fixup: empty ensure_installedChristian Clason2024-01-171-1/+1
|
* fixup: don't extend _with_ 'all'Christian Clason2024-01-171-1/+1
|
* Update parsers: gleam, gomod, wingGitHub2024-01-171-3/+3
|
* fixup: ensure_installed can be 'all'Christian Clason2024-01-161-1/+3
|
* fix(config)!: always install parsers bundled with nvimChristian Clason2024-01-161-1/+2
|
* Update parsers: perl, todotxtGitHub2024-01-161-2/+2
|
* feat!: bump minimum Nvim version to 0.9.2Christian Clason2024-01-152-3/+3
| | | | required for empty injection fix