Skip to content

Translated remaining part in doc/fold.jax #164 #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion catchup-7.4.1194.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
以上は変更点が100行未満なので、翻訳しやすいはず。

doc/change.jax
doc/fold.jax
doc/hangulin.jax
doc/if_lua.jax # 100行超えたけど、内容的に大したことない
doc/if_mzsch.jax
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/fold.jax
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ 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