mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-08 02:25:48 +02:00
feat(fish): add support for fish
This commit is contained in:
parent
f86a3bcaff
commit
7768cead0d
3 changed files with 22 additions and 1 deletions
1
TODO.rst
1
TODO.rst
|
@ -22,7 +22,6 @@ queries. Contributions are welcome.
|
|||
|
||||
- devicetree
|
||||
- elm
|
||||
- fish
|
||||
- gdscript
|
||||
- graphql
|
||||
- kotlin
|
||||
|
|
15
queries/fish/rainbow-delimiters.scm
Normal file
15
queries/fish/rainbow-delimiters.scm
Normal file
|
@ -0,0 +1,15 @@
|
|||
(command_substitution
|
||||
"(" @opening
|
||||
")" @closing) @container
|
||||
|
||||
(concatenation
|
||||
"[" @opening
|
||||
"]" @closing) @container
|
||||
|
||||
(list_element_access
|
||||
"[" @opening
|
||||
"]" @closing) @container
|
||||
|
||||
(brace_expansion
|
||||
"{" @opening
|
||||
"}" @closing) @container
|
7
test/highlight/fish/regular.fish
Normal file
7
test/highlight/fish/regular.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
set -l shells "$SHELL" /bin/{zsh,bash,sh} (which nu) /usr/bin/xonsh
|
||||
|
||||
echo "Your first few shells is $shells[1..3]"
|
||||
|
||||
if set -q shells[10]
|
||||
echo "You defined at least 10 shells"
|
||||
end
|
Loading…
Reference in a new issue