Skip to content

Commit 891701c

Browse files
authored
Merge pull request #1566 from vim-jp/hh-update-syntax
Update syntax.{txt,jax}
2 parents d14b905 + a997c7a commit 891701c

File tree

2 files changed

+33
-22
lines changed

2 files changed

+33
-22
lines changed

doc/syntax.jax

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 May 31
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 Jun 09
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -908,14 +908,15 @@ ASTRO *astro.vim* *ft-astro-syntax*
908908
コンフィグレーション
909909

910910
以下の変数は、特定の構文ハイライト機能を制御する。
911-
これらを .vimrc に追加できる: >
911+
これらを .vimrc に追加できる。
912+
913+
".astro" ファイルで TypeScript と TSX を有効にするには (デフォルト "disable"):
914+
>
912915
let g:astro_typescript = "enable"
913916
<
914-
".astro" ファイルで TypeScript と TSX を有効にする。デフォルト値: "disable" >
917+
".astro" ファイルでスタイラスを有効にするには (デフォルト "disable"): >
915918
let g:astro_stylus = "enable"
916919
<
917-
".astro" ファイルでスタイラスを有効にする。デフォルト値: "disable"
918-
919920
NOTE: astro ファイルでスタイラスをサポートするには、外部プラグインをインストー
920921
ルする必要がある。
921922

@@ -1852,7 +1853,7 @@ Note: 構文による折り畳みは、構文ハイライトを著しく遅く
18521853
大なファイルではそうである。
18531854

18541855

1855-
HTML/OS (by Aestiva) *htmlos.vim* *ft-htmlos-syntax*
1856+
HTML/OS (BY AESTIVA) *htmlos.vim* *ft-htmlos-syntax*
18561857

18571858
HTML/OS用のカラースキームは以下のように機能する:
18581859

@@ -3689,12 +3690,14 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め
36893690
g:vimsyn_embed =~ 'r' : 埋め込み ruby をサポート
36903691
g:vimsyn_embed =~ 't' : 埋め込み tcl をサポート
36913692
<
3692-
デフォルトでは、g:vimsyn_embed には Vim がサポートしている言語が設定される。複数
3693-
の埋め込み言語をサポートするには、それぞれの文字を組み合わせて設定する。例、
3694-
g:vimsyn_embed = "mp" なら mzscheme と perl がサポートされる。
3693+
デフォルトでは、g:vimsyn_embed には Vim がサポートしている言語が設定される。指
3694+
定された文字を連結して、複数のタイプの埋め込みインタープリタをサポートする。つ
3695+
まり、g:vimsyn_embed = "mp" は、埋め込み mzscheme と埋め込み perl をサポートす
3696+
る。
36953697
*g:vimsyn_folding*
36963698

3697-
syntax/vim.vim によって折り畳みが可能である: >
3699+
'foldmethod' が "syntax" に設定されている場合、一部の折り畳みがサポートされる
3700+
ようになった: >
36983701
36993702
g:vimsyn_folding == 0 または変数が存在しない: 構文ベースの折り畳みはしない
37003703
g:vimsyn_folding =~ 'a' : augroups
@@ -3707,8 +3710,12 @@ syntax/vim.vim によって折り畳みが可能である: >
37073710
g:vimsyn_folding =~ 'P' : python スクリプトを折り畳む
37083711
g:vimsyn_folding =~ 'r' : ruby スクリプトを折り畳む
37093712
g:vimsyn_folding =~ 't' : tcl スクリプトを折り畳む
3710-
let g:vimsyn_folding = 'acfhlmpPrt'
37113713
<
3714+
3715+
デフォルトでは、g:vimsyn_folding は設定されていない。複数の構文構造の折りたた
3716+
みをサポートするには、指定する文字を連結する。つまり、g:vimsyn_folding = "fh"
3717+
は、関数とヒアドキュメントの両方の折り畳みを有効にする。
3718+
37123719
*g:vimsyn_noerror*
37133720
syntax/vim.vimによるエラーのハイライトは必ずしも正しいとは限らない。Vim script
37143721
は正しくハイライトするのが難しい言語である。エラーのハイライトをやめるには次

en/syntax.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2024 May 31
1+
*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -935,14 +935,14 @@ ASTRO *astro.vim* *ft-astro-syntax*
935935
Configuration
936936

937937
The following variables control certain syntax highlighting features.
938-
You can add them to your .vimrc: >
938+
You can add them to your .vimrc.
939+
940+
To enables TypeScript and TSX for ".astro" files (default "disable"): >
939941
let g:astro_typescript = "enable"
940942
<
941-
Enables TypeScript and TSX for ".astro" files. Default Value: "disable" >
943+
To enables Stylus for ".astro" files (default "disable"): >
942944
let g:astro_stylus = "enable"
943945
<
944-
Enables Stylus for ".astro" files. Default Value: "disable"
945-
946946
NOTE: You need to install an external plugin to support stylus in astro files.
947947

948948

@@ -1909,7 +1909,7 @@ Note: Syntax folding might slow down syntax highlighting significantly,
19091909
especially for large files.
19101910

19111911

1912-
HTML/OS (by Aestiva) *htmlos.vim* *ft-htmlos-syntax*
1912+
HTML/OS (BY AESTIVA) *htmlos.vim* *ft-htmlos-syntax*
19131913

19141914
The coloring scheme for HTML/OS works as follows:
19151915

@@ -3810,12 +3810,12 @@ embedded script highlighting they wish to have. >
38103810
g:vimsyn_embed =~ 't' : support embedded tcl
38113811
<
38123812
By default, g:vimsyn_embed is a string supporting interpreters that your vim
3813-
itself supports. Concatenate multiple characters to support multiple types
3814-
of embedded interpreters; ie. g:vimsyn_embed= "mp" supports embedded mzscheme
3815-
and embedded perl.
3813+
itself supports. Concatenate the indicated characters to support multiple
3814+
types of embedded interpreters; ie. g:vimsyn_embed = "mp" supports embedded
3815+
mzscheme and embedded perl.
38163816
*g:vimsyn_folding*
38173817

3818-
Some folding is now supported with syntax/vim.vim: >
3818+
Some folding is now supported with when 'foldmethod' is set to "syntax": >
38193819
38203820
g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
38213821
g:vimsyn_folding =~ 'a' : augroups
@@ -3828,8 +3828,12 @@ Some folding is now supported with syntax/vim.vim: >
38283828
g:vimsyn_folding =~ 'P' : fold python script
38293829
g:vimsyn_folding =~ 'r' : fold ruby script
38303830
g:vimsyn_folding =~ 't' : fold tcl script
3831-
let g:vimsyn_folding = 'acfhlmpPrt'
38323831
<
3832+
3833+
By default, g:vimsyn_folding is unset. Concatenate the indicated characters
3834+
to support folding of multiple syntax constructs; i.e.
3835+
g:vimsyn_folding = "fh" will enable folding of both functions and heredocs.
3836+
38333837
*g:vimsyn_noerror*
38343838
Not all error highlighting that syntax/vim.vim does may be correct; Vim script
38353839
is a difficult language to highlight correctly. A way to suppress error

0 commit comments

Comments
 (0)