mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Do not modify the line when checking for syntax groups.
This commit is contained in:
@@ -205,15 +205,15 @@ function! delimitMate#GetCurrentSyntaxRegionIf(char) "{{{
|
|||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
function! delimitMate#IsForbidden(char) "{{{
|
function! delimitMate#IsForbidden(char) "{{{
|
||||||
if s:g('excluded_regions_enabled') == 0
|
if !s:g('excluded_regions_enabled')
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
let region = delimitMate#GetCurrentSyntaxRegion()
|
let region = delimitMate#GetCurrentSyntaxRegion()
|
||||||
if index(s:g('excluded_regions_list'), region) >= 0
|
"if index(s:g('excluded_regions_list'), region) >= 0
|
||||||
"echom "Forbidden 1!"
|
" "echom "Forbidden 1!"
|
||||||
return 1
|
" return 1
|
||||||
endif
|
"endif
|
||||||
let region = delimitMate#GetCurrentSyntaxRegionIf(a:char)
|
"let region = delimitMate#GetCurrentSyntaxRegionIf(a:char)
|
||||||
"echom "Forbidden 2!"
|
"echom "Forbidden 2!"
|
||||||
return index(s:g('excluded_regions_list'), region) >= 0
|
return index(s:g('excluded_regions_list'), region) >= 0
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user