mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 18:03:46 -05:00
Prefer single quoted strings
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user