From 5eb1061a3dfd83e5cab363a4547d5cdf5b981394 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 10 Nov 2015 09:13:48 +0900 Subject: [PATCH] redirect expanding. Close #237 --- autoload/emmet/lang/html.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 0bdd956..63c79f8 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -135,6 +135,10 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort if use_pipe_for_cursor let snippet = substitute(snippet, '|', '${cursor}', 'g') endif + " just redirect to expanding + if snippet !~ '^\s*<' + return emmet#lang#html#parseIntoTree(snippet, a:type) + endif let lines = split(snippet, "\n", 1) call map(lines, 'substitute(v:val, "\\( \\|\\t\\)", escape(indent, "\\\\"), "g")') let current.snippet = join(lines, "\n")