Skip to content

Commit b9e09f3

Browse files
Arelavsuy
authored andcommitted
feat: add jsx tsx and vue comments support (#1)
1 parent 6942e9b commit b9e09f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

autoload/context/commentstring.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,20 @@ let g:context#commentstring#table.html = {
1717

1818
let g:context#commentstring#table.xhtml = g:context#commentstring#table.html
1919

20+
let g:context#commentstring#table['javascript.jsx'] = {
21+
\ 'jsxStatment' : '/*%s*/',
22+
\ 'jsxRegion' : '{/*%s*/}',
23+
\}
24+
25+
let g:context#commentstring#table['typescript.tsx'] = {
26+
\ 'tsxStatment' : '/*%s*/',
27+
\ 'tsxRegion' : '{/*%s*/}',
28+
\}
29+
30+
let g:context#commentstring#table.vue = {
31+
\ 'javaScript' : '//%s',
32+
\ 'cssStyle' : '/*%s*/',
33+
\}
34+
35+
let g:context#commentstring#table['typescript.jsx'] = g:context#commentstring#table['typescript.tsx']
36+

0 commit comments

Comments
 (0)