mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-02-28 20:42:31 +08:00
Better handling of syntax regions
This commit is contained in:
@@ -245,7 +245,8 @@ function! delimitMate#InsertCharPre(str) "{{{1
|
||||
echom 03
|
||||
return 0
|
||||
endif
|
||||
if !empty(filter(s:option('excluded_regions'), 'index(s:synstack(line("."), col(".")), v:val) >= 0'))
|
||||
let synstack = join(map(synstack(line('.'), col('.')), 'tolower(synIDattr(v:val, "name"))'), ',')
|
||||
if !empty(filter(s:option('excluded_regions'), 'stridx(synstack, tolower(v:val)) >= 0'))
|
||||
echom 04
|
||||
return 0
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user