Skip to content

Commit

Permalink
translate remaining part vim-jp#164
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jan 30, 2016
1 parent f8de019 commit 66a0d28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion catchup-7.4.1194.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,6 +56,7 @@

doc/cmdline.jax
doc/filetype.jax
doc/fold.jax
doc/help.jax
doc/index.jax
doc/mlang.jax
Expand Down
7 changes: 3 additions & 4 deletions doc/fold.jax
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,16 @@ 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
return 's1'
else
return '='
endif
However, this won't work for single line comments, strings, etc.
ただし、行コメント、文字列などではこれは正しく機能しない。

フォールドレベルを調べるには|foldlevel()|を使うのが便利である。レベルがわから
ないときは-1を返すことに注意すること。フォールドがその行で終わっているときには
Expand Down

0 comments on commit 66a0d28

Please sign in to comment.