mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-08 05:34:45 +08:00
Fixed closing apostrophe in clojure files
This commit is contained in:
@@ -384,6 +384,9 @@ function! delimitMate#QuoteDelim(char) "{{{
|
|||||||
" If we are in a vim file and it looks like we're starting a comment, do
|
" If we are in a vim file and it looks like we're starting a comment, do
|
||||||
" not add a closing char.
|
" not add a closing char.
|
||||||
return a:char
|
return a:char
|
||||||
|
elseif a:char == "'" && index(split(&ft, '\.'), "clojure") != -1
|
||||||
|
" If we are in a clojure file, do not add a closing apostrophe.
|
||||||
|
return a:char
|
||||||
elseif s:is_smart_quote(a:char)
|
elseif s:is_smart_quote(a:char)
|
||||||
" Seems like a smart quote, insert a single char.
|
" Seems like a smart quote, insert a single char.
|
||||||
return a:char
|
return a:char
|
||||||
|
|||||||
Reference in New Issue
Block a user