Skip to content

Commit f70817d

Browse files
authored
Merge pull request #1083 from tsuyoshicho/update/20220423/ftmapsyn
Update {filetype,map,syntax}.{txt,jax}
2 parents acae8ac + 327c0d2 commit f70817d

File tree

6 files changed

+39
-11
lines changed

6 files changed

+39
-11
lines changed

doc/filetype.jax

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim バージョン 8.2. Last change: 2022 Apr 07
1+
*filetype.txt* For Vim バージョン 8.2. Last change: 2022 Apr 09
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -149,6 +149,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
149149
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
150150
*.bas g:filetype_bas |ft-basic-syntax|
151151
*.cfg g:filetype_cfg
152+
*.csh g:filetype_csh |ft-csh-syntax|
152153
*.dat g:filetype_dat
153154
*.frm g:filetype_frm |ft-form-syntax|
154155
*.fs g:filetype_fs |ft-forth-syntax|
@@ -160,7 +161,10 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
160161
*.pl g:filetype_pl
161162
*.pp g:filetype_pp |ft-pascal-syntax|
162163
*.prg g:filetype_prg
164+
*.r g:filetype_r
165+
*.sql g:filetype_sql |ft-sql-syntax|
163166
*.src g:filetype_src
167+
*.sys g:filetype_sys
164168
*.sh g:bash_is_sh |ft-sh-syntax|
165169
*.tex g:tex_flavor |ft-tex-plugin|
166170
*.w g:filetype_w |ft-cweb-syntax|

doc/map.jax

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 8.2. Last change: 2022 Apr 03
1+
*map.txt* For Vim バージョン 8.2. Last change: 2022 Apr 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1306,9 +1306,10 @@ non-id マッチした場所の前がスペース、タブ、行頭、挿入
13061306
これは "<SNR>23_Add" といったマップを定義します。
13071307

13081308
スクリプトで関数を作成するときに、関数名の前に "s:" を付けると、ローカル関数を
1309-
作成できます。しかし、その関数をマップで使用する場合、そのマップをスクリプト以
1310-
外の場所で実行すると、その関数がどのスクリプトで定義されたのか分かりません。こ
1311-
れを解決するには、マップ中で "s:" ではなく "<SID>" を使用します。この場合も
1309+
作成できます(|Vim9| script ではプリフィックスなしの関数はスクリプトローカルに
1310+
なります)。しかし、その関数をマップで使用する場合、そのマップをスクリプト以外
1311+
の場所で実行すると、その関数がどのスクリプトで定義されたのか分かりません。これ
1312+
を解決するには、マップ中で "s:" ではなく "<SID>" を使用します。この場合も
13121313
"<SID>" は上記の例と同じように置換されます。これでローカル関数の呼び出しを含む
13131314
マップを定義できます。
13141315

doc/syntax.jax

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 8.2. Last change: 2022 Apr 06
1+
*syntax.txt* For Vim バージョン 8.2. Last change: 2022 Apr 24
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2120,6 +2120,15 @@ V release 4で供給される標準的なパッケージセットの関数がユ
21202120
mv_finance mv_logic mv_powseries
21212121
21222122
2123+
MARKDOWN *ft-markdown-syntax*
2124+
2125+
長い領域がある場合、間違ったハイライトがおこなわれる可能性がある。表示を遅くす
2126+
る代償として、エンジンに領域の開始を同期するためにもっと後方を見るようにするこ
2127+
とができる。500行の例: >
2128+
2129+
:let g:markdown_minlines = 500
2130+
2131+
21232132
MATHEMATICA *mma.vim* *ft-mma-syntax* *ft-mathematica-syntax*
21242133

21252134
次を .vimrc に書いておかないかぎり、空の *.m ファイルは自動的に Matlab のファ

en/filetype.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 8.2. Last change: 2022 Apr 07
1+
*filetype.txt* For Vim version 8.2. Last change: 2022 Apr 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -143,6 +143,7 @@ variables can be used to overrule the filetype used for certain extensions:
143143
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
144144
*.bas g:filetype_bas |ft-basic-syntax|
145145
*.cfg g:filetype_cfg
146+
*.csh g:filetype_csh |ft-csh-syntax|
146147
*.dat g:filetype_dat
147148
*.frm g:filetype_frm |ft-form-syntax|
148149
*.fs g:filetype_fs |ft-forth-syntax|
@@ -154,7 +155,10 @@ variables can be used to overrule the filetype used for certain extensions:
154155
*.pl g:filetype_pl
155156
*.pp g:filetype_pp |ft-pascal-syntax|
156157
*.prg g:filetype_prg
158+
*.r g:filetype_r
159+
*.sql g:filetype_sql |ft-sql-syntax|
157160
*.src g:filetype_src
161+
*.sys g:filetype_sys
158162
*.sh g:bash_is_sh |ft-sh-syntax|
159163
*.tex g:tex_flavor |ft-tex-plugin|
160164
*.w g:filetype_w |ft-cweb-syntax|

en/map.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2022 Apr 03
1+
*map.txt* For Vim version 8.2. Last change: 2022 Apr 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1324,7 +1324,8 @@ underscore. Example: >
13241324
could define a mapping "<SNR>23_Add".
13251325

13261326
When defining a function in a script, "s:" can be prepended to the name to
1327-
make it local to the script. But when a mapping is executed from outside of
1327+
make it local to the script (in |Vim9| script functions without a prefix are
1328+
local to the script). But when a mapping is executed from outside of
13281329
the script, it doesn't know in which script the function was defined. To
13291330
avoid this problem, use "<SID>" instead of "s:". The same translation is done
13301331
as for mappings. This makes it possible to define a call to the function in

en/syntax.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 8.2. Last change: 2022 Apr 06
1+
*syntax.txt* For Vim version 8.2. Last change: 2022 Apr 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -215,7 +215,7 @@ A syntax group name doesn't specify any color or attributes itself.
215215

216216
The name for a highlight or syntax group must consist of ASCII letters, digits
217217
and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give
218-
an error when using other characters. The maxium length of a group name is
218+
an error when using other characters. The maximum length of a group name is
219219
about 200 bytes. *E1249*
220220

221221
To be able to allow each user to pick their favorite set of colors, there must
@@ -2197,6 +2197,15 @@ $VIMRUNTIME/syntax/syntax.vim).
21972197
mv_finance mv_logic mv_powseries
21982198
21992199
2200+
MARKDOWN *ft-markdown-syntax*
2201+
2202+
If you have long regions there might be wrong highlighting. At the cost of
2203+
slowing down displaying, you can have the engine look further back to sync on
2204+
the start of a region, for example 500 lines: >
2205+
2206+
:let g:markdown_minlines = 500
2207+
2208+
22002209
MATHEMATICA *mma.vim* *ft-mma-syntax* *ft-mathematica-syntax*
22012210

22022211
Empty *.m files will automatically be presumed to be Matlab files unless you

0 commit comments

Comments
 (0)