Last active
December 25, 2015 22:29
-
-
Save yukirin/7050422 to your computer and use it in GitHub Desktop.
emmet.vimの閉じタグコメントを変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim | |
index 11bf1f1..a7e3af9 100644 | |
--- a/autoload/emmet/lang/html.vim | |
+++ b/autoload/emmet/lang/html.vim | |
@@ -371,7 +371,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite | |
endif | |
endfor | |
if len(comment) > 0 | |
- let str = "<!-- " . comment . " -->\n" . str | |
+ let str = str | |
endif | |
if stridx(','.settings.html.empty_elements.',', ','.current_name.',') != -1 | |
let str .= settings.html.empty_element_suffix | |
@@ -422,7 +422,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite | |
let str .= "</" . current_name . ">" | |
endif | |
if len(comment) > 0 | |
- let str .= "\n<!-- /" . comment . " -->" | |
+ let str .= "<!-- /" . comment . " -->" | |
endif | |
if len(current_name) > 0 && current.multiplier > 0 || stridx(','.settings.html.block_elements.',', ','.current_name.',') != -1 | |
let str .= "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="hoge"> | |
</div><!-- /.hoge --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment