diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-14 16:07:20 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-14 16:07:20 +0200 |
commit | 6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4 (patch) | |
tree | fc88e9fa76fadcb49587fbf9780da9147f8e9f3c /autoload/jsx_pretty/comment.vim | |
parent | 2edc785a5e21cf41960223b09bba8efc9276e777 (diff) | |
download | vim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.tar.gz vim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.zip |
Add svelte support, closes #410
Diffstat (limited to 'autoload/jsx_pretty/comment.vim')
-rw-r--r-- | autoload/jsx_pretty/comment.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index d5d58f5d..639e55b9 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -7,7 +7,7 @@ function! jsx_pretty#comment#update_commentstring(original) let syn_start = s:syn_name(line('.'), 1) let save_cursor = getcurpos() - if syn_start =~ '^jsx' + if syn_start =~? '^jsx' let line = getline(".") let start = len(matchstr(line, '^\s*')) let syn_name = s:syn_name(line('.'), start + 1) @@ -16,7 +16,7 @@ function! jsx_pretty#comment#update_commentstring(original) let &l:commentstring = '// %s' elseif s:syn_contains(line('.'), col('.'), 'jsxTaggedRegion') let &l:commentstring = '<!-- %s -->' - elseif syn_name =~ '^jsxAttrib' + elseif syn_name =~? '^jsxAttrib' let &l:commentstring = '// %s' else let &l:commentstring = '{/* %s */}' |