diff --git a/catchup-7.4.1194.md b/catchup-7.4.1194.md index 37c26ee69..6b67404e3 100644 --- a/catchup-7.4.1194.md +++ b/catchup-7.4.1194.md @@ -23,7 +23,6 @@ doc/change.jax doc/develop.jax doc/editing.jax - doc/fold.jax doc/hangulin.jax doc/if_lua.jax # 100行超えたけど、内容的に大したことない doc/if_mzsch.jax @@ -57,6 +56,7 @@ doc/cmdline.jax doc/filetype.jax + doc/fold.jax doc/help.jax doc/index.jax doc/mlang.jax diff --git a/doc/fold.jax b/doc/fold.jax index 206a1c3dd..f3ce13227 100644 --- a/doc/fold.jax +++ b/doc/fold.jax @@ -119,9 +119,8 @@ 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 +128,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を返すことに注意すること。フォールドがその行で終わっているときには