Skip to content

Commit 81ede8f

Browse files
committed
Update indent.{txt,jax}
1 parent 8155951 commit 81ede8f

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

doc/indent.jax

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*indent.txt* For Vim バージョン 9.1. Last change: 2024 Oct 05
1+
*indent.txt* For Vim バージョン 9.1. Last change: 2024 Nov 12
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -801,6 +801,38 @@ HTML *ft-html-indent* *html-indent* *html-indenting*
801801
: GetCSSIndent() その他
802802
<!-- --> : -1
803803

804+
IDRIS2 *ft-idris2-indent*
805+
806+
Idris 2 のインデントは、さまざまな言語構造のインデントレベルを制御するいくつか
807+
の変数を使用して構成可能である:
808+
809+
"g:idris2_indent_if" 変数は、`if` ステートメントの後の `then` および `else`
810+
ロックのインデントを制御する。デフォルトは 3 である。
811+
812+
"g:idris2_indent_case" 変数は、`case` 式内のパターンのインデントを制御する。デ
813+
フォルトは 5 である。
814+
815+
"g:idris2_indent_let" 変数は、`let` バインディング後のインデントを制御する。デ
816+
フォルトは 4 である。
817+
818+
"g:idris2_indent_rewrite" 変数は、`rewrite` 式後のインデントを制御する。デフォ
819+
ルトは 8 である。
820+
821+
"g:idris2_indent_where" 変数は、`where` ブロックのインデントを制御する。デフォ
822+
ルトは 6 である。
823+
824+
"g:idris2_indent_do" 変数は、`do` ブロック内のインデントを制御する。デフォルト
825+
は 3 である。
826+
827+
構成例: >
828+
829+
let g:idris2_indent_if = 2
830+
let g:idris2_indent_case = 4
831+
let g:idris2_indent_let = 4
832+
let g:idris2_indent_rewrite = 8
833+
let g:idris2_indent_where = 6
834+
let g:idris2_indent_do = 3
835+
<
804836

805837
MATLAB *ft-matlab-indent* *matlab-indent* *matlab-indenting*
806838

en/indent.txt

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*indent.txt* For Vim version 9.1. Last change: 2024 Oct 05
1+
*indent.txt* For Vim version 9.1. Last change: 2024 Nov 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -813,6 +813,38 @@ Detail:
813813
: GetCSSIndent() else
814814
<!-- --> : -1
815815

816+
IDRIS2 *ft-idris2-indent*
817+
818+
Idris 2 indentation can be configured with several variables that control the
819+
indentation level for different language constructs:
820+
821+
The "g:idris2_indent_if" variable controls the indentation of `then` and `else`
822+
blocks after `if` statements. Defaults to 3.
823+
824+
The "g:idris2_indent_case" variable controls the indentation of patterns in
825+
`case` expressions. Defaults to 5.
826+
827+
The "g:idris2_indent_let" variable controls the indentation after `let`
828+
bindings. Defaults to 4.
829+
830+
The "g:idris2_indent_rewrite" variable controls the indentation after `rewrite`
831+
expressions. Defaults to 8.
832+
833+
The "g:idris2_indent_where" variable controls the indentation of `where`
834+
blocks. Defaults to 6.
835+
836+
The "g:idris2_indent_do" variable controls the indentation in `do` blocks.
837+
Defaults to 3.
838+
839+
Example configuration: >
840+
841+
let g:idris2_indent_if = 2
842+
let g:idris2_indent_case = 4
843+
let g:idris2_indent_let = 4
844+
let g:idris2_indent_rewrite = 8
845+
let g:idris2_indent_where = 6
846+
let g:idris2_indent_do = 3
847+
<
816848

817849
MATLAB *ft-matlab-indent* *matlab-indent* *matlab-indenting*
818850

0 commit comments

Comments
 (0)