Skip to content

Commit 209e26e

Browse files
committed
add support for tcsh
1 parent 2c8584c commit 209e26e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

after/syntax/tcsh.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
syn match tcshCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=tcshComment
2+
call css_color#init( 'hex', 'none'
3+
\, 'tcshSQuote,tcshDQuote,tcshHereDoc,'
4+
\. 'tcshCommentColor' )

tests/example.tcsh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TODO #0f0 should show up green
2+
# TODO f00 should not show up red
3+
4+
set word = '#0f0'
5+
echo "#0f0"
6+
echo #f00
7+
#f00
8+
##0f0
9+
# TODO #0f0
10+
# TODO #0f0 TODO
11+
cat <<X
12+
#0f0
13+
X

0 commit comments

Comments
 (0)