diff options
Diffstat (limited to 'memo.js')
-rw-r--r-- | memo.js | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -33,7 +33,7 @@ THE POSSIBILITY OF SUCH DAMAGE. }}} */ // PLUGIN_INFO {{{ -let PLUGIN_INFO = +let PLUGIN_INFO = xml` <VimperatorPlugin> <name>{NAME}</name> <description>Write a memo to the specified file.</description> @@ -59,7 +59,7 @@ let PLUGIN_INFO = :memo fooooobar! "fooooobar!" と、メモに書く ]]></detail> -</VimperatorPlugin>; +</VimperatorPlugin>`; // }}} // References: @@ -122,9 +122,9 @@ let PLUGIN_INFO = if (arg.literalArg) { puts(arg.literalArg); } else { - let out = <></>; + let out = xml``; gets().split(/\n/).reverse().forEach(function (l) { - out += <li>{l}</li> + out += xml`<li>${l}</li>`; }); liberator.echo(out); } @@ -142,16 +142,16 @@ let PLUGIN_INFO = let desc = item[1] || this.process[1].call(this, item, item.description); if (item.description && item.description.length) { - return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap"> + return xml`<div highlight=${highlightGroup || "CompItem"} style="white-space: nowrap"> <li highlight="CompDesc"> - {item.description} + ${item.description} </li> - </div>; + </div>`; } - return <div highlight={highlightGroup || "CompItem"} style="white-space: nowrap"> - <li highlight="CompDesc">{item[0]} </li> - </div>; + return xml`<div highlight=${highlightGroup || "CompItem"} style="white-space: nowrap"> + <li highlight="CompDesc">${item[0]} </li> + </div>`; }; context.filters = [function (item) this.match(item.description)]; |