Omar Valdez
cd2acc803b
feat(vim): highlight prepend operator
2024-11-21 09:02:13 +01:00
Riley Bruins
bc80862298
fix(vimscript): miscellaneous fixups
...
- Highlights the `abort` keyword
- Moves `is(not)?` from `@operator` to `@keyword.operator`
- Highlights the `->` operator
2024-04-19 19:12:26 +02:00
Phạm Huy Hoàng
722617e672
refactor(format): drop extra indentation for field
2024-03-21 15:51:26 +01:00
再生花
31641d72a4
feat(format-scripts): linewrap predicates
...
"format-ignore".kick()
2024-02-23 10:42:01 +02:00
ObserverOfTime
1bee80469d
feat(vim): highlight keycodes
2024-01-24 20:19:55 +01:00
ObserverOfTime
fa38f4e6f9
fix(highlights): improve member/property distinction
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
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
5b90ea2aba
feat(locals)!: switch to upstream captures
2024-01-19 16:58:37 +01:00
ObserverOfTime
1b5bbb54b3
fix(vim): highlight 'scriptencoding' command
2023-12-09 11:12:07 +01:00
Kevin Svetlitski
1705a3e486
feat(vim): add the builtin sign command ( #5322 )
2023-08-27 10:43:10 +03:00
Pham Huy Hoang
78b54eb7f6
chore(injections)!: update injection syntax to 0.9
...
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter
- update health check
- update doc
2023-08-12 17:34:15 +02:00
Amaan Qureshi
85330918f0
perf: remove match where possible
2023-04-21 18:24:17 -04:00
Stephan Seitz
d6a2ecb8b7
highlights: create subscoping for ternary operator
...
After https://github.com/nvim-treesitter/nvim-treesitter/issues/470 ,
we decided to use `@conditional` for ternary operator instead of
operator despite `@conditional` is documented for keywords only.
A sub-scoping can make it easier for people to highlight this operator
group differently.
Also unify the usage of `@conditional...` across languages.
2022-12-02 21:42:11 +01:00
GitHub
4f885f2d07
Update lockfile.json
2022-11-21 12:09:24 +01:00
ObserverOfTime
f76a6b6c85
highlights(vim): add some more keywords
2022-10-15 08:12:55 -07:00
Christian Clason
9c3a1366bc
feat(viml): update queries
2022-10-15 13:01:35 +02:00
Christian Clason
e58b7f9950
feat(viml): bump parser and queries
2022-09-08 01:24:39 +02:00
Christian Clason
08e9b7cdf7
feat(viml): update queries
2022-08-26 20:54:32 +02:00
Thomas Vigouroux
59f656a203
chore(vim): update parser and highlights
...
Adds support for map_bar.
Correctly highlight unknown builtin commands.
2022-08-23 15:03:06 +02:00
Thomas Vigouroux
ea8d8bbef0
feat(vim): update to latest highlights
2022-08-23 14:28:36 +02:00
Christian Clason
11e88f698a
update vim parser and queries
2022-08-17 11:17:55 +02:00
lfenzo
c784720917
Split func/method definition from calls in several programming language queries
2022-08-03 12:05:30 -07:00
Seth Barberee
b705435453
vim: add basic folding for if statements and functions ( #2994 )
2022-06-07 09:10:09 +02:00
Thomas Vigouroux
6619432dd3
feat(vim): add support for const
2022-05-01 19:21:40 +02:00
Thomas Vigouroux
386f80e4d7
feat(vim): highlight unknown commands
2022-04-16 20:32:35 +02:00
Pierrick Guillaume
af71c25edc
fix(vim): fix highlight for pattern
...
Allow pattern to not contain pattern_multi node to be highlighted
2022-02-19 18:26:23 +01:00
Pierrick Guillaume
c867d483a5
add(vim): add highlight for more keywords
2022-02-08 16:27:40 +01:00
Zoltán Reegn
d6e6581a25
feat(vim): highlight default parameters
2022-02-07 13:42:34 +01:00
Thomas Vigouroux
2bdaff2ab0
feat(vim): highlight "higlight" variants
2022-01-24 13:24:31 +01:00
Thomas Vigouroux
073a3ac929
feat(vim): support syntax command
2022-01-24 13:24:31 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
Thomas Vigouroux
b12ab1d851
fix(vim): support syntax command and update parser
2021-10-01 08:24:58 +02:00
Santos Gallegos
6714daf5ac
Vim: highlight setlocal ( #1877 )
...
This was just added some days ago.
2021-09-30 10:30:01 -05:00
Santos Gallegos
949ec04726
Vim: update highlights and injections
2021-09-27 21:13:13 +02:00
Thomas Vigouroux
5549058779
feat(vim): highlight highlight_statement correctly
...
Fixes #1747
2021-08-26 09:55:32 +02:00
Santos Gallegos
79a0230dbd
Viml: update queries
2021-08-23 09:23:15 +02:00
Thomas Vigouroux
fb3a7a8bcc
feat(vim): support augroups
2021-08-20 14:51:13 +02:00
Thomas Vigouroux
43c70a73e7
fix(viml): update and support mappings
2021-08-20 10:22:01 +02:00
Thomas Vigouroux
344b36866b
fix(vim): highlight more punctuation
2021-08-16 21:31:22 +02:00
Thomas Vigouroux
f2076b267e
feat: add support for vim
2021-08-16 15:09:53 +02:00