GH-159: don't use comma as alias for HTML/XML tags
This change allows us to surround text with commas.
This commit is contained in:
parent
772ab9587b
commit
5c6a64f333
@ -164,7 +164,7 @@ function! s:wrap(string,char,type,removed,special)
|
|||||||
elseif newchar ==# ':'
|
elseif newchar ==# ':'
|
||||||
let before = ':'
|
let before = ':'
|
||||||
let after = ''
|
let after = ''
|
||||||
elseif newchar =~# "[tT\<C-T><,]"
|
elseif newchar =~# "[tT\<C-T><]"
|
||||||
let dounmapp = 0
|
let dounmapp = 0
|
||||||
let dounmapb = 0
|
let dounmapb = 0
|
||||||
if !maparg(">","c")
|
if !maparg(">","c")
|
||||||
@ -200,7 +200,7 @@ function! s:wrap(string,char,type,removed,special)
|
|||||||
let before = '<'.tag.attributes.'>'
|
let before = '<'.tag.attributes.'>'
|
||||||
let after = '</'.substitute(tag,' .*','','').'>'
|
let after = '</'.substitute(tag,' .*','','').'>'
|
||||||
endif
|
endif
|
||||||
if newchar == "\<C-T>" || newchar == ","
|
if newchar == "\<C-T>"
|
||||||
if type ==# "v" || type ==# "V"
|
if type ==# "v" || type ==# "V"
|
||||||
let before .= "\n\t"
|
let before .= "\n\t"
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user