Kai Moschcau
46cac01880
feat(bash,fish): deactivate spelling in shebangs
2024-05-01 15:01:48 +02:00
David Guevara
e6cd337e30
fix(bash): fix printf injection queries ( #6405 )
2024-04-05 10:01:19 +02:00
michaelPotter
aa6323e834
feat(bash): align substitutions with expansions
...
The bash manual[1] considers command and process substitutions to be
forms of expansions, so they should be highlighted the same as other
expansions. This is traditionally how they have been highlighted in the
past too.
[1] https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
2024-03-24 20:53:58 -04: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
Riley Bruins
5d9e12ccf4
fix(bash): unordered concatenation highlights
2024-02-18 06:19:20 -05:00
Amaan Qureshi
05962ae14a
chore(bash): update parser and highlights
2024-02-10 06:58:38 -05:00
Miles Frain
2c1eb02e92
feat(bash) Highlight concatenated words as strings
2024-01-25 00:15:02 +01:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
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
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
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
Amaan Qureshi
920b37260e
feat(bash): update parser and queries
2023-08-30 14:36:10 -04:00
Amaan Qureshi
3be738312b
fix(bash): update queries from upstream ( #5321 )
2023-08-26 09:06:54 +00:00
Amaan Qureshi
ed2c6da5a0
feat(bash): add missing highlights
2023-08-24 17:17:53 -04:00
ObserverOfTime
31f608e47b
feat(bash): fold heredocs
2023-08-24 12:11:16 +03:00
ObserverOfTime
103ecdf758
fix(bash): fix injections
2023-08-24 12:11:16 +03:00
ObserverOfTime
1ff7985a74
feat(bash): improve highlights
2023-08-24 12:11:16 +03:00
ObserverOfTime
71532e7776
feat(bash): add heredoc injection
2023-08-12 17:34:15 +02: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
Lewis Russell
d9be302f74
fix(spell): do not spell check certain types of strings ( #5203 )
...
- Document that only certain kinds of strings are spell checked, and
reasons why they may not.
- Remove spell checking for bash strings.
2023-08-07 13:42:24 +01:00
Akmadan23
c005b8a880
feat(bash): add various shell builtins
2023-06-19 02:36:16 -04:00
Frank Bearoff
1b5a7334bb
feat(bash): highlight until as @repeat
2023-06-05 12:32:53 -04:00
Frank
cb6d94ef7b
add "select" to @repeat highlight group
2023-06-02 01:45:12 -07:00
Amaan Qureshi
85330918f0
perf: remove match where possible
2023-04-21 18:24:17 -04:00
ObserverOfTime
9018fb26cc
injections: add more regex injections
2022-11-27 17:35:10 +01:00
ギャラ
2d7249409d
fix(bash): Rename ansii_c_string to ansi_c_string. ( #3702 )
2022-10-23 09:57:56 +00:00
ObserverOfTime
9b43ab819c
highlights: use @preproc where appropriate
2022-10-15 08:49:01 -07:00
ObserverOfTime
b74bd776f2
highlights(bash): add all signal names
2022-10-15 08:12:55 -07:00
Lewis Russell
37398c7d68
feat(spell): support more languages
2022-09-26 13:47:12 +01:00
lfenzo
c784720917
Split func/method definition from calls in several programming language queries
2022-08-03 12:05:30 -07:00
adrian5
fa6031d81a
highlights(bash): add more builtins
2022-04-04 18:52:14 +02:00
Stephan Seitz
4fa30b5249
highlights(bash): add operators ">>", "<<"
2022-03-16 15:05:03 +01:00
Stephan Seitz
2cb67b8f4e
folds(bash): fold at c_style_for_statement
2022-01-09 20:16:21 +01:00
lucy
be741e2568
highlights(bash): add [[ ]]
2021-12-14 19:31:21 +01:00
lucy
4871b2b440
highlights(bash): add process substitution
2021-12-14 19:31:21 +01:00
Stephan Seitz
28cc92a2f6
highlights(bash): highlight "((" "))"
2021-11-28 15:01:24 +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
Sergio Alejandro Vargas
820b4a9c21
Use @keyword.function consistently
2021-07-06 00:53:40 +02:00
Joakker
c699cc2e47
Use #any-of? instead of #match? where posible
2021-06-25 00:22:48 +02:00
Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* Comment: use `@combined` to create just one tree per buffer
There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251
* Add injections for scss
* Fix jsonc
* Combine jsdoc
2021-04-28 07:19:07 -05:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
Mike
98fba24acf
feat: Add more bash queries
...
Add missing fold queries
Add "function" to keywords highlights
2020-12-25 15:56:27 +01:00
David Hotham
35dec1ceeb
remove duplication of query for number
2020-12-25 15:56:06 +01:00
David Hotham
0c19049023
match test for regex
2020-12-25 15:56:06 +01:00
David Hotham
026314f2a9
fixes to bash highlighting
2020-12-25 15:56:06 +01:00
Stephan Seitz
b4d91a340e
Bash highlights: reset highlighting in expansion
2020-12-14 07:38:38 +01:00
Santos Gallegos
76c00934a6
Bash: update highlights
...
Following some of our conventions and some bits from atom
https://github.com/atom/language-shellscript/blob/master/grammars/tree-sitter-bash.cson :
- Uppercase var are constants
- `$` is a special symbol, not part of the name
- Builtin constants and functions
2020-09-19 13:33:05 +02:00