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 |
|
Bartek Łuka
|
295ab1da52
|
fix: link type in pattern matching correctly
|
2024-01-15 13:01:37 +01:00 |
|
GitHub
|
0746b1a13d
|
Update parsers: awk
|
2024-01-15 09:08:43 +01:00 |
|
GitHub
|
fcf843bf14
|
Update parsers: erlang, php, templ, wing
|
2024-01-14 15:27:06 +01:00 |
|
GitHub
|
8cd2b23017
|
Update parsers: templ, tlaplus
|
2024-01-07 13:28:41 +01:00 |
|
Christian Clason
|
f6483d1194
|
fix(php): adjust to parser refactor
|
2024-01-07 13:12:04 +01:00 |
|
GitHub
|
5032f9952a
|
Update parsers: ada, ruby
|
2024-01-06 11:31:09 +01:00 |
|
Calum Smith
|
49f1b9a7ef
|
highlights(html): character references (a.k.a. entities)
|
2024-01-05 16:58:46 +01:00 |
|
Christian Clason
|
9288d9b505
|
ci: bump actions to latest
|
2024-01-05 12:54:30 +01:00 |
|
GitHub
|
adf423a493
|
Update parsers: astro, php, ruby, templ, wing
|
2024-01-05 11:05:48 +01:00 |
|
Zhuofeng Wang
|
e277ca9dec
|
fix(markdown_inline): latex highlight injection (#5397)
The `injection.include-children` is needed in markdown_inline parser.
|
2024-01-05 10:58:35 +01:00 |
|
Riley Bruins
|
8ae4080c5b
|
fix(latex): highlight text functions
|
2024-01-04 20:07:31 +01:00 |
|
GitHub
|
0da349ed30
|
Update parsers: ada, ocaml, ocaml_interface, sql, wing
|
2024-01-03 18:26:58 +01:00 |
|
GitHub
|
3ef514b10b
|
Update parsers: scala, templ, v, wing
|
2024-01-03 11:31:39 +01:00 |
|
Christian Degnbol Madsen
|
65ef62092e
|
fix(julia): add missing capture of ":" in selected import
If writing a selected import, e.g. `using BSON: @load`, the colon isn't currently captured.
This change captures it as `@punctuation.delimiter`.
|
2024-01-02 11:43:08 +01:00 |
|
GitHub
|
e49f1e8ef3
|
Update parsers: nim, templ, wing
|
2023-12-30 11:08:24 +01:00 |
|
GitHub
|
362ebd3a21
|
Update parsers: perl, rst, v, wing
|
2023-12-29 11:05:47 +01:00 |
|
GitHub
|
7a2c6211d6
|
Update parsers: perl, scala, wing
|
2023-12-28 12:26:00 +01:00 |
|
GitHub
|
7d0b4756ab
|
Update parsers: nickel, nix, scala, v, wing
|
2023-12-27 11:32:57 +01:00 |
|
GitHub
|
27f68c0b6a
|
Update parsers: haskell, templ
|
2023-12-24 16:15:19 +09:00 |
|
Riley Bruins
|
374966b25c
|
fixup(luau): align @string.regex to the injections (#5829)
|
2023-12-24 14:00:32 +09:00 |
|
Riley Bruins
|
cd4de5f7b1
|
fix: cleanup luap injection queries
|
2023-12-23 22:26:02 +01:00 |
|
Riley Bruins
|
92572c0dfd
|
feat: more @string.regex highlights
|
2023-12-23 22:26:02 +01:00 |
|