Prefer single quoted strings

This commit is contained in:
Jaehwang Jerry Jung
2021-08-01 00:57:34 +09:00
parent 576bd64482
commit f7333809b6

View File

@@ -1906,7 +1906,7 @@ function! s:CanCommentLine(forceNested, lineNum) abort
" make sure we don't comment lines that are just spaces or tabs or empty, " make sure we don't comment lines that are just spaces or tabs or empty,
" unless configured otherwise " unless configured otherwise
if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$" if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$'
return 0 return 0
endif endif
@@ -1973,7 +1973,7 @@ function! s:CanToggleCommentLine(forceNested, lineNum) abort
" make sure we don't comment lines that are just spaces or tabs or empty, " make sure we don't comment lines that are just spaces or tabs or empty,
" unless configured otherwise " unless configured otherwise
if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$" if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$'
return 0 return 0
endif endif