From f6d7b745cd04347eaf220e24fdaccaa69b64af03 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 30 Jan 2016 23:21:42 +0900 Subject: [PATCH] translate remaining part #164 --- catchup-7.4.1194.md | 2 +- doc/fold.jax | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/catchup-7.4.1194.md b/catchup-7.4.1194.md index 71974f1ec..632144a8a 100644 --- a/catchup-7.4.1194.md +++ b/catchup-7.4.1194.md @@ -20,7 +20,6 @@ 以上は変更点が100行未満なので、翻訳しやすいはず。 doc/change.jax - doc/fold.jax doc/hangulin.jax doc/if_lua.jax # 100行超えたけど、内容的に大したことない doc/if_mzsch.jax @@ -55,6 +54,7 @@ doc/develop.jax doc/editing.jax doc/filetype.jax + doc/fold.jax doc/help.jax doc/index.jax doc/map.jax diff --git a/doc/fold.jax b/doc/fold.jax index 206a1c3dd..a48d0fb6b 100644 --- a/doc/fold.jax +++ b/doc/fold.jax @@ -119,9 +119,9 @@ NOTE: 各行について式評価が実行されるので、この折畳方式 折畳レベルが定義された行が見つかるまで戻って、幾度も検索を行わなければならない からだ。これは動作が遅くなることがある。 -An example of using "a1" and "s1": For a multi-line C comment, a line -containing "/*" would return "a1" to start a fold, and a line containing "*/" -would return "s1" to end the fold after that line: > +"a1" と "s1" の使用例: C 言語の複数行コメントを折りたたむ場合、"/*" を含む行で +は "a1" を返してその開始位置を、"*/" を含む行では "s1" を返してその終了位置を示 +す: > if match(thisline, '/\*') >= 0 return 'a1' elseif match(thisline, '\*/') >= 0 @@ -129,7 +129,7 @@ would return "s1" to end the fold after that line: > else return '=' endif -However, this won't work for single line comments, strings, etc. +ただし、単一行コメント内、文字列リテラル内などではこれは正しく機能しない。 フォールドレベルを調べるには|foldlevel()|を使うのが便利である。レベルがわから ないときは-1を返すことに注意すること。フォールドがその行で終わっているときには