Skip to content

Commit 0abda44

Browse files
committed
Update txt and jax #3
2 parents 7aa9ab4 + 01dbe02 commit 0abda44

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

doc/eval.jax

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim バージョン 8.1. Last change: 2018 Dec 27
1+
*eval.txt* For Vim バージョン 8.1. Last change: 2019 Jan 01
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -6505,33 +6505,32 @@ prompt_setprompt({buf}, {text}) *prompt_setprompt()*
65056505
<
65066506
*prop_add()* *E965*
65076507
prop_add({lnum}, {col}, {props})
6508-
{lnum}行{col}桁の位置にテキストプロパティを付加する。最初の桁
6509-
は1を使用する
6508+
{lnum}行{col}桁の位置にテキストプロパティを付加する。{col}はバ
6509+
イト数でカウントされる。最初の桁は1を使用する
65106510
{lnum}が無効な場合、エラーが発生する。*E966*
65116511
{col}が無効な場合、エラーが発生する。*E964*
65126512

65136513
{props}は次のフィールドを持つ辞書である:
6514-
length length of text in characters, can only be used
6515-
for a property that does not continue in
6516-
another line
6517-
length テキストの文字の長さ。別の行に続かないプロパ
6518-
ティに対してのみ使用できる
6514+
length テキストの長さ(バイト)。別の行に続かないプロパ
6515+
ティに対してのみ使用できる。0指定可能。
65196516
end_lnum テキスト終端の行番号
6520-
end_col テキストの最後の桁。"length" が与えられた場合
6521-
は使用されない
6517+
end_col テキストの直後の桁。"length" が与えられた場合
6518+
は使用されない。{col}と "end_col" が等しい場
6519+
合、これは幅ゼロのテキストプロパティである。
65226520
bufnr プロパティを追加するバッファ。省略された場合、
65236521
カレントバッファが使用される
65246522
id プロパティのユーザー定義ID。 省略時は0が使われ
65256523
65266524
type テキストプロパティ名
65276525
"type" を除くすべてのフィールドは任意である。
65286526

6529-
"length" と "end_lnum" または "end_col" の両方が渡されるとエ
6527+
"length" と "end_lnum" または "end_col" の両方が与えられるとエ
65306528
ラーになる。1行内のプロパティに "length" または "end_col" を使
65316529
用するか、複数の行にまたがるプロパティに対して "end_lnum" と
65326530
"end_col" を使用する。
6533-
"length" または "end_col" のどちらも渡されない場合、プロパティ
6534-
は1文字に適用される。
6531+
"length" または "end_col" のどちらも与えられない場合、プロパ
6532+
ティは幅ゼロになる。これは、強調表示されないが、テキストと共に
6533+
マークのように移動することを意味する。
65356534
プロパティは、テキストの最後の文字、またはその直後で終わらせる
65366535
ことができる。最後のケースでは、テキストが行に追加されると、プ
65376536
ロパティタイプに "end_incl" が設定されていない場合にも、テキス
@@ -6588,7 +6587,7 @@ prop_list({lnum} [, {props}]) *prop_list()*
65886587
プロパティは、開始桁と優先順位によって順序付けられる。
65896588
各プロパティは、次のエントリを持つ辞書である:
65906589
col 開始桁
6591-
length バイト長{訳注: 文字の長さでは?}
6590+
length バイト長。改行が含まれる場合は1以上。
65926591
id プロパティID
65936592
type プロパティタイプ名。タイプが削除された場合は省
65946593
略される

en/eval.txt

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2018 Dec 27
1+
*eval.txt* For Vim version 8.1. Last change: 2019 Jan 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6689,18 +6689,19 @@ prompt_setprompt({buf}, {text}) *prompt_setprompt()*
66896689
<
66906690
*prop_add()* *E965*
66916691
prop_add({lnum}, {col}, {props})
6692-
Attach a text property at position {lnum}, {col}. Use one for
6693-
the first column.
6692+
Attach a text property at position {lnum}, {col}. {col} is
6693+
counted in bytes, use one for the first column.
66946694
If {lnum} is invalid an error is given. *E966*
66956695
If {col} is invalid an error is given. *E964*
66966696

66976697
{props} is a dictionary with these fields:
6698-
length length of text in characters, can only be used
6698+
length length of text in bytes, can only be used
66996699
for a property that does not continue in
6700-
another line
6701-
end_lnum line number for end of text
6702-
end_col last column of the text; not used when
6703-
"length" is present
6700+
another line; can be zero
6701+
end_lnum line number for the end of text
6702+
end_col column just after the text; not used when "length"
6703+
is present; when {col} and "end_col" are equal
6704+
this is a zero-width text property
67046705
bufnr buffer to add the property to; when omitted
67056706
the current buffer is used
67066707
id user defined ID for the property; when omitted
@@ -6709,11 +6710,12 @@ prop_add({lnum}, {col}, {props})
67096710
All fields except "type" are optional.
67106711

67116712
It is an error when both "length" and "end_lnum" or "end_col"
6712-
are passed. Either use "length" or "end_col" for a property
6713+
are given. Either use "length" or "end_col" for a property
67136714
within one line, or use "end_lnum" and "end_col" for a
67146715
property that spans more than one line.
6715-
When neither "length" nor "end_col" are passed the property
6716-
will apply to one character.
6716+
When neither "length" nor "end_col" are given the property
6717+
will be zero-width. That means it will not be highlighted but
6718+
will move with the text, as a kind of mark.
67176719
The property can end exactly at the last character of the
67186720
text, or just after it. In the last case, if text is appended
67196721
to the line, the text property size will increase, also when
@@ -6773,7 +6775,8 @@ prop_list({lnum} [, {props}]) *prop_list()*
67736775
The properties are ordered by starting column and priority.
67746776
Each property is a Dict with these entries:
67756777
col starting column
6776-
length length in bytes
6778+
length length in bytes, one more if line break is
6779+
included
67776780
id property ID
67786781
type name of the property type, omitted if
67796782
the type was deleted

0 commit comments

Comments
 (0)