James Trew
cd4e090994
fix(locals): index matches with split capture names
2024-01-22 17:09:27 +01:00
GitHub
97997c928b
Update parsers: phpdoc, templ, wing, zathurarc
2024-01-22 16:13:48 +09:00
wzy
94bd4bcc5b
feat: add the zathurarc parser ( #5948 )
2024-01-21 19:42:30 +02:00
Phạm Huy Hoàng
e0420e73c9
fix(wgsl_bevy): Correct formatter mistake
...
Old version of `format-queries` incorrectly took away a space, creating
a wrong capture.
This is a fixup for that.
2024-01-22 00:49:31 +09:00
Phạm Huy Hoàng
77e298e4de
chore: format queries
2024-01-21 23:55:02 +09:00
Phạm Huy Hoàng
76ca66db38
fix(format-scripts): remove parens if possible
2024-01-21 23:55:02 +09:00
Sergey Slipchenko
051193acba
fix(jsdoc): add nospell to type and tag_name
2024-01-21 16:04:34 +02:00
Christian Clason
6806d7a783
docs(contributing): typos and examples
2024-01-21 12:04:42 +01:00
Veesh Goldman
5d5eba78a7
feat(perl): add more highlights
2024-01-21 10:53:32 +01:00
GitHub
4e0d1dd91f
Update parsers: gleam, perl, templ, wing
2024-01-21 16:21:14 +09:00
Christian Clason
5cc5627487
fix(comments)!: consolidate note captures
...
Distinguishing `hint` and `info` is too confusing; it's enough to have
`error`, `warning`, `todo`, and `note`.
2024-01-20 17:52:50 +01:00
tk-shirasaka
64b3d5e569
feat: add the php_only parser included in tree-sitter-php ( #5876 )
...
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>
2024-01-20 12:34:49 +00:00
Christian Clason
a8fa3047b5
fix(highlights): use markup.raw.delimiter for fences
2024-01-20 13:04:29 +01:00
Phạm Huy Hoàng
aeed349c04
feat: folds for git config files
2024-01-20 19:46:45 +09:00
Riley Bruins
88261266de
fix(markdown_inline): prioritize link URI ( #5935 )
2024-01-20 19:00:37 +09:00
Amaan Qureshi
1ce6000a95
fix(rust): add const_item to folds
2024-01-20 18:50:31 +09:00
Pham Huy Hoang
c41d38b70e
fix(rust): Add back 1 indent for macro rules ( #5834 )
2024-01-20 18:50:31 +09:00
Jędrzej Boczar
6548bb64c1
feat(meson): add indents.scm
2024-01-20 10:48:56 +01:00
Phạm Huy Hoàng
d198a75e2c
Fixup format ( #5934 )
...
* fix(format): newline between top-level field defs
* fixup: newline between node and comment
* fixup: optimize pattern
2024-01-20 18:47:56 +09:00
Riley Bruins
f5a839d1e8
fix(markdown): remove @none from code fences
2024-01-20 10:24:57 +01:00
GitHub
134a86f9ff
Update parsers: bash
2024-01-20 10:21:53 +01:00
Riley Bruins
1eb22367b9
feat(html): comment injections
2024-01-20 12:54:01 +09:00
Zeb Nicholls
4a4dbe1cb1
fix(python): add support for typed (kw)args (PEP 484) ( #5875 )
2024-01-19 16:21:57 +00:00
GitHub
757b4f6afb
Update parsers: printf, scala
2024-01-19 17:20:43 +01:00
ObserverOfTime
505a0e74cb
fix(css): make the highlights more sensible
2024-01-19 16:58:37 +01:00
ObserverOfTime
fa38f4e6f9
fix(highlights): improve member/property distinction
2024-01-19 16:58:37 +01:00
ObserverOfTime
2f38c36294
fix(highlights): improve consistency
2024-01-19 16:58:37 +01:00
ObserverOfTime
4cd951d703
feat(git_config): add missing injections
2024-01-19 16:58:37 +01:00
Amaan Qureshi
8c629a9327
chore(rust): tweak injections, add json macro injection
2024-01-19 16:58:37 +01:00
Christian Clason
76b85583e1
docs: update CONTRIBUTING.md with formatting
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
79975d6557
ci: add query lint job
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
edee83272e
refactor: manual pre-cleanup
...
Moving comments, adding `format-ignore` to lines that will be better
with it
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
15de22a2e1
feat: query formatting script
...
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
2024-01-19 16:58:37 +01:00
Christian Clason
fc0fceb43a
test(queries): print ALL errors at end
2024-01-19 16:58:37 +01:00
Christian Clason
1ae9b0e455
feat!: align standard captures with upstream
...
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"
(3f44b89685/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`
2024-01-19 16:58:37 +01:00
Christian Clason
10dd49958c
chore(tests): consistent captures
2024-01-19 16:58:37 +01:00
ObserverOfTime
17fae3f4a3
feat(injections): add printf format strings
2024-01-19 16:58:37 +01:00
Christian Clason
5b90ea2aba
feat(locals)!: switch to upstream captures
2024-01-19 16:58:37 +01:00
Christian Clason
f197a15b0d
revert "fix(config)!: always install parsers bundled with nvim"
2024-01-19 16:45:58 +01:00
GitHub
090880c0f1
Update parsers: scala, wing
2024-01-19 16:06:06 +09:00
Christian Clason
5037721ec5
fixup: proper union of tables
2024-01-18 17:08:20 +01:00
GitHub
503d0ccdee
Update parsers: gitcommit, markdown, markdown_inline, vimdoc, wing
2024-01-18 08:17:20 +01:00
Christian Clason
07c8c3d84f
fixup: empty ensure_installed
2024-01-17 11:07:20 +01:00
Christian Clason
7b326a0962
fixup: don't extend _with_ 'all'
2024-01-17 11:01:24 +01:00
GitHub
94cb036ba7
Update parsers: gleam, gomod, wing
2024-01-17 09:44:06 +01:00
Christian Clason
97ba59c6f5
fixup: ensure_installed can be 'all'
2024-01-16 19:05:28 +01:00
Christian Clason
fe89bf1719
fix(config)!: always install parsers bundled with nvim
2024-01-16 18:24:59 +01:00
GitHub
842507a578
Update parsers: perl, todotxt
2024-01-16 08:11:50 +01:00
Christian Clason
59d4c14a1a
feat!: bump minimum Nvim version to 0.9.2
...
required for empty injection fix
2024-01-15 13:02:20 +01:00