diff options
author | anekos | 2010-03-20 11:06:12 +0000 |
---|---|---|
committer | anekos | 2010-03-20 11:06:12 +0000 |
commit | 9e6914051e55ad6e32527e3ba963445eadeb4355 (patch) | |
tree | 44e654441c699b4b28d02e14470e496bdb53e332 /mkcolor.js | |
parent | b056a97a6cbe8ae7bc9074d5fde494314ab3dac3 (diff) | |
download | vimperator-plugins-9e6914051e55ad6e32527e3ba963445eadeb4355.tar.bz2 |
2.3対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37060 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'mkcolor.js')
-rw-r--r-- | mkcolor.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -39,13 +39,13 @@ let PLUGIN_INFO = <name lang="ja">mkcolor</name> <description>Write current highlights to the specified file.</description> <description lang="ja">現在のHighlightを指定のファイルに書き出す。</description> - <version>1.0.2</version> + <version>1.0.3</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> <updateURL>http://coderepos.org/share/export/27234/lang/javascript/vimperator-plugins/trunk/mkcolor.js</updateURL> - <minVersion>2.3pre</minVersion> - <maxVersion>2.3pre</maxVersion> + <minVersion>2.3</minVersion> + <maxVersion>2.3</maxVersion> <detail><![CDATA[ == Commands == - mkcolor <FILENAME> @@ -69,7 +69,7 @@ let PLUGIN_INFO = max = Math.max(h.class.length, max); for (let h in highlight) result.push(h.value ? 'hi ' + pad(h.class, max) + ' ' + rmrem(h.value) - : '// hi ' + h.class); + : '" hi ' + h.class); return result.join("\n"); } @@ -81,7 +81,7 @@ let PLUGIN_INFO = let file = io.File(filename); if (file.exists() && !args.bang) return liberator.echoerr(filename + ' already exists (add ! to override)'); - io.writeFile(file, getcolor()); + io.File(file).write(getcolor()); }, { argCount: '1', |