Skip to content

Commit 4694c6e

Browse files
committed
add support for fish
1 parent 209e26e commit 4694c6e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

after/syntax/fish.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
" https://github.com/dag/vim-fish (and presumably its various forks)
2+
syn match fishCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=fishComment
3+
call css_color#init( 'hex', 'none', 'fishString,fishCommentColor' )

tests/example.fish

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# #0f0 should show up green
2+
# f00 should not show up red
3+
4+
#f00
5+
##0f0
6+
# #0f0
7+
echo '#0f0'
8+
set result "#0f0"
9+
echo #f00
10+
echo ##0f0

0 commit comments

Comments
 (0)