summaryrefslogtreecommitdiffstats
path: root/autoload/jsx_pretty/comment.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/jsx_pretty/comment.vim')
-rw-r--r--autoload/jsx_pretty/comment.vim4
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 */}'