From da1ad5998cd412f7d3ea6a2637e29702e567af25 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 28 Nov 2021 15:02:58 +0900 Subject: [PATCH 01/21] syntax.txt: Update Vim 8.2.3687 --- en/syntax.txt | 136 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 97 insertions(+), 39 deletions(-) diff --git a/en/syntax.txt b/en/syntax.txt index 1ade9e99d..3bc5cf4b0 100644 --- a/en/syntax.txt +++ b/en/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 8.2. Last change: 2021 Aug 16 +*syntax.txt* For Vim version 8.2. Last change: 2021 Nov 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1081,33 +1081,47 @@ This works immediately. CLOJURE *ft-clojure-syntax* -The default syntax groups can be augmented through the -*g:clojure_syntax_keywords* and *b:clojure_syntax_keywords* variables. The -value should be a |Dictionary| of syntax group names to a |List| of custom -identifiers: + *g:clojure_syntax_keywords* + +Syntax highlighting of public vars in "clojure.core" is provided by default, +but additional symbols can be highlighted by adding them to the +|g:clojure_syntax_keywords| variable. The value should be a |Dictionary| of +syntax group names, each containing a |List| of identifiers. > let g:clojure_syntax_keywords = { - \ 'clojureMacro': ["defproject", "defcustom"], - \ 'clojureFunc': ["string/join", "string/replace"] + \ 'clojureMacro': ["defproject", "defcustom"], + \ 'clojureFunc': ["string/join", "string/replace"] \ } < Refer to the Clojure syntax script for valid syntax group names. -If the |buffer-variable| *b:clojure_syntax_without_core_keywords* is set, only -language constants and special forms are matched. +There is also *b:clojure_syntax_keywords* which is a buffer-local variant of +this variable intended for use by plugin authors to highlight symbols +dynamically. + +By setting the *b:clojure_syntax_without_core_keywords* variable, vars from +"clojure.core" will not be highlighted by default. This is useful for +namespaces that have set `(:refer-clojure :only [])` + -Setting *g:clojure_fold* enables folding Clojure code via the syntax engine. -Any list, vector, or map that extends over more than one line can be folded -using the standard Vim |fold-commands|. + *g:clojure_fold* -Please note that this option does not work with scripts that redefine the -bracket syntax regions, such as rainbow-parentheses plugins. +Setting |g:clojure_fold| to `1` will enable the folding of Clojure code. Any +list, vector or map that extends over more than one line can be folded using +the standard Vim |fold-commands|. -This option is off by default. + + *g:clojure_discard_macro* + +Set this variable to `1` to enable basic highlighting of Clojure's "discard +reader macro". > - " Default - let g:clojure_fold = 0 + #_(defn foo [x] + (println x)) < +Note that this option will not correctly highlight stacked discard macros +(e.g. `#_#_`). + COBOL *cobol.vim* *ft-cobol-syntax* @@ -1519,6 +1533,14 @@ gvim display. Here, statements are colored LightYellow instead of Yellow, and conditionals are LightBlue for better distinction. +FORTH *forth.vim* *ft-forth-syntax* + +Files matching "*.fs" could be F# or Forth. If the automatic detection +doesn't work for you, or you don't edit F# at all, use this in your +startup vimrc: > + :let filetype_fs = "forth" + + FORTRAN *fortran.vim* *ft-fortran-syntax* Default highlighting and dialect ~ @@ -1673,16 +1695,6 @@ as Fvwm2 configuration files, add the following: > :au! BufNewFile,BufRead /etc/X11/fvwm2/* let b:fvwm_version = 2 | \ set filetype=fvwm -If you'd like Vim to highlight all valid color names, tell it where to -find the color database (rgb.txt) on your system. Do this by setting -"rgb_file" to its location. Assuming your color database is located -in /usr/X11/lib/X11/, you should add the line > - - :let rgb_file = "/usr/X11/lib/X11/rgb.txt" - -to your .vimrc file. - - GSP *gsp.vim* *ft-gsp-syntax* The default coloring style for GSP pages is defined by |html.vim|, and @@ -4830,16 +4842,28 @@ in their own color. Doesn't work recursively, thus you can't use ":colorscheme" in a color scheme script. - To customize a color scheme use another name, e.g. + You have two options for customizing a color scheme. + For changing the appearance of specific colors, you + can redefine a color name before loading the scheme. + The desert scheme uses the khaki color for the cursor. + To use a darker variation of the same color: > + + let v:colornames['khaki'] = '#bdb76b' + colorscheme desert +< + For further customization, such as changing + |:highlight-link| associations, use another name, e.g. "~/.vim/colors/mine.vim", and use `:runtime` to load the original color scheme: > runtime colors/evening.vim hi Statement ctermfg=Blue guifg=Blue -< Before the color scheme will be loaded the - |ColorSchemePre| autocommand event is triggered. - After the color scheme has been loaded the - |ColorScheme| autocommand event is triggered. +< Before the color scheme will be loaded all default + color list scripts (`colors/lists/default.vim`) will + be executed and then the |ColorSchemePre| autocommand + event is triggered. After the color scheme has been + loaded the |ColorScheme| autocommand event is + triggered. For info about writing a color scheme file: > :edit $VIMRUNTIME/colors/README.txt @@ -4849,6 +4873,7 @@ in their own color. :hi[ghlight] {group-name} List one highlight group. + *highlight-clear* :hi[ghlight] clear Reset all highlighting to the defaults. Removes all highlighting for groups added by the user! Uses the current value of 'background' to decide which @@ -4862,7 +4887,9 @@ in their own color. :hi[ghlight] [default] {group-name} {key}={arg} .. Add a highlight group, or change the highlighting for - an existing group. + an existing group. If a given color name is not + recognized, each `colors/lists/default.vim` found on + |'runtimepath'| will be loaded. See |highlight-args| for the {key}={arg} arguments. See |:highlight-default| for the optional [default] argument. @@ -5143,8 +5170,35 @@ guisp={color-name} *highlight-guisp* "gg" is the Green value "bb" is the Blue value All values are hexadecimal, range from "00" to "ff". Examples: > - :highlight Comment guifg=#11f0c3 guibg=#ff00ff + :highlight Comment guifg=#11f0c3 guibg=#ff00ff +< + If you are authoring a color scheme and use the same hexademical value + repeatedly, you can define a name for it in |v:colornames|. For + example: > + + # provide a default value for this color but allow the user to + # override it. + :call extend(v:colornames, {'alt_turquoise': '#11f0c3'}, 'keep') + :highlight Comment guifg=alt_turquoise guibg=magenta < + If you are using a color scheme that relies on named colors and you + would like to adjust the precise appearance of those colors, you can + do so by overriding the values in |v:colornames| prior to loading the + scheme: > + + let v:colornames['alt_turquoise'] = '#22f0d3' + colorscheme alt +< + If you want to develop a color list that can be relied on by others, + it is best to prefix your color names. By convention these color lists + are placed in the colors/lists directory. You can see an example in + '$VIMRUNTIME/colors/lists/csscolors.vim'. This list would be sourced + by a color scheme using: > + + :runtime colors/lists/csscolors.vim + :highlight Comment guifg=css_turquoise +< + *highlight-groups* *highlight-default* These are the default highlighting groups. These groups are used by the 'highlight' option default. Note that the highlighting depends on the value @@ -5205,6 +5259,10 @@ LineNrBelow Line number for when the 'relativenumber' *hl-CursorLineNr* CursorLineNr Like LineNr when 'cursorline' is set and 'cursorlineopt' contains "number" or is "both", for the cursor line. + *hl-CursorLineSign* +CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line. + *hl-CursorLineFold* +CursorLineFold Like FoldColumn when 'cursorline' is set for the cursor line. *hl-MatchParen* MatchParen The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| @@ -5431,7 +5489,7 @@ For Unix you can use the file ~/.vim/after/syntax/syncolor.vim. Example: > else highlight comment ctermfg=green guifg=green endif - +< *E679* Do make sure this syncolor.vim script does not use a "syntax on", set the 'background' option or uses a "colorscheme" command, because it results in an @@ -5444,11 +5502,11 @@ depends on the color scheme file. See |:colorscheme|. *syntax_cmd* The "syntax_cmd" variable is set to one of these values when the syntax/syncolor.vim files are loaded: - "on" ":syntax on" command. Highlight colors are overruled but + "on" `:syntax on` command. Highlight colors are overruled but links are kept - "enable" ":syntax enable" command. Only define colors for groups that - don't have highlighting yet. Use ":syntax default". - "reset" ":syntax reset" command or loading a color scheme. Define all + "enable" `:syntax enable` command. Only define colors for groups that + don't have highlighting yet. Use `:highlight default` . + "reset" `:syntax reset` command or loading a color scheme. Define all the colors. "skip" Don't define colors. Used to skip the default settings when a syncolor.vim file earlier in 'runtimepath' has already set From f51acb205b6010baaf47315bd08a6619b6fc1580 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 28 Nov 2021 16:07:13 +0900 Subject: [PATCH 02/21] syntax.jax: Update Vim 8.2.3687 translate a part --- doc/syntax.jax | 148 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 105 insertions(+), 43 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 84e6914db..0a64d26c3 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1,4 +1,4 @@ -*syntax.txt* For Vim バージョン 8.2. Last change: 2021 Aug 16 +*syntax.txt* For Vim バージョン 8.2. Last change: 2021 Nov 20 VIMリファレンスマニュアル by Bram Moolenaar @@ -1056,32 +1056,45 @@ ChangeLogでは行頭のスペースのハイライトできる。これをオ CLOJURE *ft-clojure-syntax* -デフォルト構文グループは、変数 *g:clojure_syntax_keywords* や -*b:clojure_syntax_keywords* を用いて追加できる。値には構文グループの名前をキー -とし、値にカスタム識別子の|List|を持つ|Dictionary|を指定する: + *g:clojure_syntax_keywords* + +"clojure.core" 内の公開変数のシンタックスハイライトがデフォルトで提供され、 +しかし追加シンボルを変数 |g:clojure_syntax_keywords| へ追加することでハイライ +トできる。値には構文グループの名前をキーとし、値にカスタム識別子のリスト +|List| を持つ辞書 |Dictionary| を指定する。 > let g:clojure_syntax_keywords = { - \ 'clojureMacro': ["defproject", "defcustom"], - \ 'clojureFunc': ["string/join", "string/replace"] + \ 'clojureMacro': ["defproject", "defcustom"], + \ 'clojureFunc': ["string/join", "string/replace"] \ } < 有効な構文グループについては、Clojure 構文スクリプトを参照。 -バッファ変数(|buffer-variable|) *b:clojure_syntax_without_core_keywords* がセッ -トされると、言語定数と特定のフォームにのみマッチする。 +そしてまたプラグイン作者が動的にシンボルをハイライトする意図で使用するための +バッファローカル版として変数 *b:clojure_syntax_keywords* もある。 + +変数 *b:clojure_syntax_without_core_keywords* への設定で、"clojure.core" の変 +数をデフォルトでハイライトしなくなる。これは `(:refer-clojure :only [])` で設 +定される名前空間に便利である。 + + *g:clojure_fold* -*g:clojure_fold* を設定するとシンタックスエンジンに基づいた Clojure コードの折 -り畳みが有効化される。複数行に渡るリスト、ベクタ、マップなどを標準の Vim を -使って折り畳みできる |fold-commands|。 +|g:clojure_fold| を1に設定すると Clojure のコードの折り畳みが有効になる。 +標準のVimの折り畳みコマンド |fold-commands| で1行を越える任意のlist, vector, +mapを折り畳みできる。 -このオプションは rainbow-parentheses プラグインのような、角カッコの構文範囲を -変更するようなスクリプトを使っているときは機能しない。 -このオプションは初期設定でオフになっている。 + *g:clojure_discard_macro* + +この変数を1に設定すると Clojure の "Discard マクロ" の基本的なハイライトを有効 +にする。 > - " 初期設定 - let g:clojure_fold = 0 + #_(defn foo [x] + (println x)) < +Note このオプションでは重なった Discard マクロのハイライトは正しくならない(例 +`#_#_`)。 + COBOL *cobol.vim* *ft-cobol-syntax* @@ -1484,6 +1497,14 @@ FORM用の既定の拡張カラーモードではヘッダー命令とFORMプロ 拡張モードを使うことは、gvimで暗いディスプレイを使用した場合にも利点がある。命 令文は黄色ではなく明るい黄色で表示され、条件文は視認性のため明るい青で表示され る。 + + +FORTH *forth.vim* *ft-forth-syntax* + +Files matching "*.fs" could be F# or Forth. If the automatic detection +doesn't work for you, or you don't edit F# at all, use this in your +startup vimrc: > + :let filetype_fs = "forth" FORTRAN *fortran.vim* *ft-fortran-syntax* @@ -1628,14 +1649,6 @@ FVWM CONFIGURATION FILES *fvwm.vim* *ft-fvwm-syntax* :au! BufNewFile,BufRead /etc/X11/fvwm2/* let b:fvwm_version = 2 | \ set filetype=fvwm -全ての有効な色の名前をVimにハイライトさせるには、システムの色データベース -(rgb.txt)の位置を知らせる必要がある。これには変数 "rgb_file" にその場所を設定 -する。色データベースが/usr/X11/lib/X11/にあるとすれば: > - - :let rgb_file = "/usr/X11/lib/X11/rgb.txt" - -このような内容をファイル.vimrcに追加する。 - GSP *gsp.vim* *ft-gsp-syntax* @@ -4649,17 +4662,29 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン 再帰的な読み込みはされない。つまりカラースキームスクリ プト中で ":colorscheme" を使うことはできない。 - - カラースキームをカスタマイズするには異なる名前を使い、 - 例えば "~/.vim/colors/mine.vim"、`:runtime`を用いてオ - リジナルのカラースキームを読み込む: > + + カラースキームのカスタマイズには2つの選択肢がある。 + 特定の色として表われているものを変えるために、カラース + キームのロード前にカラー名を再定義できる。 + desert スキームはカーソルの色として khaki を使う。 + 同じ色のより暗いバリエーションを使うなら:: > + + let v:colornames['khaki'] = '#bdb76b' + colorscheme desert +< + さらなるカスタマイズとして、|:highlight-link| 連係の変 + 更や他の名前を使うならば、例えば + "~/.vim/colors/mine.vim"、`:runtime`を用いてオリジナル + のカラースキームを読み込む: > runtime colors/evening.vim hi Statement ctermfg=Blue guifg=Blue -< カラースキームが読み込まれる前に、自動コマンドイベント - |ColorSchemePre| が発生する。カラースキームが読み込ま - れた後、自動コマンドイベント |ColorScheme| が発生す - る。カラースキームファイルを書くための情報については次 +< カラースキームがロードされる前に全デフォルトのカラーリ + ストのスクリプト(`colors/lists/default.vim`)が実行され + |ColorSchemePre| 自動コマンドイベントが起動される。カ + ラースキームがロードされたら |ColorScheme| 自動コマン + ドイベントが起動される。 + カラースキームファイルを書くための情報については次 を参照: > :edit $VIMRUNTIME/colors/README.txt @@ -4668,6 +4693,7 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン :hi[ghlight] {group-name} 1つのハイライトグループを表示する。 + *highlight-clear* :hi[ghlight] clear 全てのハイライトをデフォルトに戻す。ユーザーによって加 えられたグループに対するハイライトが全て消去される。 現在の 'background' の値によってデフォルトの色が決ま @@ -4681,7 +4707,9 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン :hi[ghlight] [default] {group-name} {key}={arg} .. ハイライトグループを追加する、または既存のグループに対 - する強調を変更する。 + する強調を変更する。指定された色の名前が認識されない場 + 合、|'runtimepath'| 上で見付かる各 + `colors/lists/default.vim` がロードされる。 引数{key}={arg}については|highlight-args|を参照。 オプショナルな引数[default]については |:highlight-default|を参照。 @@ -4952,8 +4980,35 @@ guisp={color-name} *highlight-guisp* "gg" Green値 "bb" Blue値 これらの値は16進であり、範囲は "00" から "ff"。例: > - :highlight Comment guifg=#11f0c3 guibg=#ff00ff + :highlight Comment guifg=#11f0c3 guibg=#ff00ff +< + If you are authoring a color scheme and use the same hexademical value + repeatedly, you can define a name for it in |v:colornames|. For + example: > + + # provide a default value for this color but allow the user to + # override it. + :call extend(v:colornames, {'alt_turquoise': '#11f0c3'}, 'keep') + :highlight Comment guifg=alt_turquoise guibg=magenta +< + If you are using a color scheme that relies on named colors and you + would like to adjust the precise appearance of those colors, you can + do so by overriding the values in |v:colornames| prior to loading the + scheme: > + + let v:colornames['alt_turquoise'] = '#22f0d3' + colorscheme alt +< + If you want to develop a color list that can be relied on by others, + it is best to prefix your color names. By convention these color lists + are placed in the colors/lists directory. You can see an example in + '$VIMRUNTIME/colors/lists/csscolors.vim'. This list would be sourced + by a color scheme using: > + + :runtime colors/lists/csscolors.vim + :highlight Comment guifg=css_turquoise < + *highlight-groups* *highlight-default* 以下はデフォルトのハイライトグループである。これらのグループはデフォルトでオプ ション 'highlight' によって使われる。ただしハイライトは 'background' の値に依 @@ -5013,6 +5068,12 @@ LineNrBelow 'relativenumber' オプションが設定されているときのカ CursorLineNr LineNr と同じだが 'cursorline' が設定され、'cursorlineopt' に "number" が含まれるか "both" が設定されているときに現在行に使 われる。 + *hl-CursorLineSign* +CursorLineSign SignColumn と同じだが 'cursorline' が設定されたときに現在行に + 使われる。 + *hl-CursorLineFold* +CursorLineFold FoldColumn と同じだが 'cursorline' が設定されたときに現在行に + 使われる。 *hl-MatchParen* MatchParen カーソル下の文字、または直後の文字が括弧であるとき、その文字と 対応する括弧に使われる。|pi_paren.txt| @@ -5225,24 +5286,25 @@ Unixでは~/.vim/after/syntax/syncolor.vimファイルを使うとよい。例: else highlight comment ctermfg=green guifg=green endif - -カラースキームを使用すると、ユーザー定義の色が使われるのか、それともカラース -キームで定義された色が使われるのかわからなくなる場合がある。これはカラースキー -ムファイルに依存する。|:colorscheme|を参照。 - +< *E679* このsyncolor.vimが "syntax on" を実行しないこと、また、オプション 'background' を設定したりコマンド "colorscheme" を実行しないように注意すること。もしこれら を実行すると無限ループに陥ってしまう。 +Note カラースキームを使用すると、ユーザー定義の色が使われるのか、それともカラー +スキームで定義された色が使われるのかわからなくなる場合がある。これはカラース +キームファイルに依存する。|:colorscheme|を参照。 + *syntax_cmd* syntax/syncolor.vimファイルが読み込まれると、変数 "syntax_cmd" に次の3つの値の どれかがセットされる: - "on" ":syntax on" コマンド。ハイライト色が上書きされるがリンクはそ + "on" `:syntax on` コマンド。ハイライト色が上書きされるがリンクはそ のまま。 - "enable" ":syntax enable" コマンド。まだハイライトが定義されていないグ - ループに対して色を定義するだけ。":syntax default" を使うこと。 - "reset" ":syntax reset" コマンドまたはカラースキームを読み込む。全ての + "enable" `:syntax enable` コマンド。まだハイライトが定義されていないグ + ループに対して色を定義するだけ。`:highlight default` を使うこ + と。 + "reset" `:syntax reset` コマンドまたはカラースキームを読み込む。全ての 色を定義する。 "skip" 色を定義しない。'runtimepath' で前にあるsyncolor.vimファイルが 既にデフォルト設定をセットしているとき、そのデフォルト設定をス From 21c43d7ebf7f264731f47b0ff05dc433ab4089b2 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 28 Nov 2021 18:53:23 +0900 Subject: [PATCH 03/21] syntax.jax: Update Vim 8.2.3687 translate a part --- doc/syntax.jax | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 0a64d26c3..23225f429 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1497,13 +1497,13 @@ FORM用の既定の拡張カラーモードではヘッダー命令とFORMプロ 拡張モードを使うことは、gvimで暗いディスプレイを使用した場合にも利点がある。命 令文は黄色ではなく明るい黄色で表示され、条件文は視認性のため明るい青で表示され る。 - + FORTH *forth.vim* *ft-forth-syntax* -Files matching "*.fs" could be F# or Forth. If the automatic detection -doesn't work for you, or you don't edit F# at all, use this in your -startup vimrc: > +"*.fs" にマッチするファイルのタイプは F# か Forth である。自動判別がうまく機能 +しないなら、または F# ファイルを一切編集しないとわかっているなら、次をvimrcに +加えるとよい: > :let filetype_fs = "forth" @@ -4982,28 +4982,25 @@ guisp={color-name} *highlight-guisp* これらの値は16進であり、範囲は "00" から "ff"。例: > :highlight Comment guifg=#11f0c3 guibg=#ff00ff < - If you are authoring a color scheme and use the same hexademical value - repeatedly, you can define a name for it in |v:colornames|. For - example: > + あなたがカラースキームの作者であり同じ16進数値を繰り返すのであれば + |v:colornames| にカラー名を定義することができる。例えば: > - # provide a default value for this color but allow the user to - # override it. + # デフォルト値を提供するがユーザーが上書きすることを許容する。 :call extend(v:colornames, {'alt_turquoise': '#11f0c3'}, 'keep') :highlight Comment guifg=alt_turquoise guibg=magenta < - If you are using a color scheme that relies on named colors and you - would like to adjust the precise appearance of those colors, you can - do so by overriding the values in |v:colornames| prior to loading the - scheme: > + あなたが名前の付いたカラーに頼るカラースキームを利用するのなら、それら + の色について正確な出力に調整することができ、そのために |v:colornames| + の値をスキームをロードするまえに上書きできる: > let v:colornames['alt_turquoise'] = '#22f0d3' colorscheme alt < - If you want to develop a color list that can be relied on by others, - it is best to prefix your color names. By convention these color lists - are placed in the colors/lists directory. You can see an example in - '$VIMRUNTIME/colors/lists/csscolors.vim'. This list would be sourced - by a color scheme using: > + 他に頼るカラーリストの開発をしたいなら、あなたのカラー名にプリフィック + スを付けるのが最良である。習慣としてそれらのカラーリストは + colors/lists ディレクトリに置く。例を + '$VIMRUNTIME/colors/lists/csscolors.vim' に見ることができる。このリス + トはカラースキームが使われるときに読み込まれうる: > :runtime colors/lists/csscolors.vim :highlight Comment guifg=css_turquoise From 892cd13a5870b4e3f5392f7a00ec66315bae6da9 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 11 Dec 2021 09:09:26 +0900 Subject: [PATCH 04/21] syntax.txt: Update Vim 8.2.3779 --- en/syntax.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/en/syntax.txt b/en/syntax.txt index 3bc5cf4b0..0101b51b6 100644 --- a/en/syntax.txt +++ b/en/syntax.txt @@ -3196,6 +3196,14 @@ buffer by buffer basis. For more detailed instructions see |ft_sql.txt|. +SQUIRREL *squirrel.vim* *ft-squirrel-syntax* + +Squirrel is a high level imperative, object-oriented programming language, +designed to be a light-weight scripting language that fits in the size, memory +bandwidth, and real-time requirements of applications like video games. Files +with the following extensions are recognized as squirrel files: .nut. + + TCSH *tcsh.vim* *ft-tcsh-syntax* This covers the shell named "tcsh". It is a superset of csh. See |csh.vim| From 47356f6ae882cfc8ac84e7f23de7bd4b892af3cd Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 11 Dec 2021 09:28:06 +0900 Subject: [PATCH 05/21] syntax.jax: Update Vim 8.2.3779 translate --- doc/syntax.jax | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/syntax.jax b/doc/syntax.jax index 23225f429..86ebfd4c1 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -3079,6 +3079,14 @@ SQLにはANSI標準があるのだが、ほとんどのデータベースエン より詳しい説明は|ft_sql.txt|を参照。 +SQUIRREL *squirrel.vim* *ft-squirrel-syntax* + +Squirrel は高級な命令型オブジェクト指向のプログラミング言語で、サイズ、メモリ、 +帯域幅、リアルタイム性を要求するゲームのようなアプリケーションに適合するように +設計されている軽量スクリプト言語である。次の拡張子のファイルが squirrel ファイ +ルとして認識される: .nut + + TCSH *tcsh.vim* *ft-tcsh-syntax* これは "tcsh" という名前のシェルをカバーしている。これはcshのスーパーセットで From fd3bdba2f8029e81f12fc8450c13773d61d9d63a Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Fri, 24 Dec 2021 23:57:40 +0900 Subject: [PATCH 06/21] syntax.txt: Update Vim 8.2.3882 --- en/syntax.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/syntax.txt b/en/syntax.txt index 0101b51b6..35a4e3ad7 100644 --- a/en/syntax.txt +++ b/en/syntax.txt @@ -4506,7 +4506,7 @@ it marks the "\(\I\i*\)" sub-expression as external; in the end pattern, it changes the \z1 back-reference into an external reference referring to the first external sub-expression in the start pattern. External references can also be used in skip patterns: > - :syn region foo start="start \(\I\i*\)" skip="not end \z1" end="end \z1" + :syn region foo start="start \z(\I\i*\)" skip="not end \z1" end="end \z1" Note that normal and external sub-expressions are completely orthogonal and indexed separately; for instance, if the pattern "\z(..\)\(..\)" is applied From 593517287713495daa96b85963512c0ad3f581eb Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Fri, 24 Dec 2021 23:59:47 +0900 Subject: [PATCH 07/21] syntax.jax: Update Vim 8.2.3882 translate --- doc/syntax.jax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 86ebfd4c1..ddb650812 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -3084,7 +3084,7 @@ SQUIRREL *squirrel.vim* *ft-squirrel-syntax* Squirrel は高級な命令型オブジェクト指向のプログラミング言語で、サイズ、メモリ、 帯域幅、リアルタイム性を要求するゲームのようなアプリケーションに適合するように 設計されている軽量スクリプト言語である。次の拡張子のファイルが squirrel ファイ -ルとして認識される: .nut +ルとして認識される: .nut TCSH *tcsh.vim* *ft-tcsh-syntax* @@ -4347,7 +4347,7 @@ skipパターンも "\n" を含んでよい。ただし次の行の最初の文 "\(\I\i*\)" をexternalとしてマークする。endパターンでは\z1によってstartパターン 中の最初のマークされた部分への外部参照とする。外部参照はskipパターン中でも使え る: > - :syn region foo start="start \(\I\i*\)" skip="not end \z1" end="end \z1" + :syn region foo start="start \z(\I\i*\)" skip="not end \z1" end="end \z1" 通常のマークとexternalなマークはまったく独立であり、別々に番号が振られる。例え ば、文字列 "aabb" に対してパターン "\z(..\)\(..\)" を適用すると、\1は "bb" を From f98fdb9913c6e83463b8b84ffedb469dcf3b6868 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 9 Jan 2022 14:45:33 +0900 Subject: [PATCH 08/21] syntax.jax: treat translate Co-authored-by: h_east --- doc/syntax.jax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index ddb650812..d9a3c1a5c 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1058,10 +1058,10 @@ CLOJURE *ft-clojure-syntax* *g:clojure_syntax_keywords* -"clojure.core" 内の公開変数のシンタックスハイライトがデフォルトで提供され、 -しかし追加シンボルを変数 |g:clojure_syntax_keywords| へ追加することでハイライ -トできる。値には構文グループの名前をキーとし、値にカスタム識別子のリスト -|List| を持つ辞書 |Dictionary| を指定する。 +"clojure.core" 内の公開変数のシンタックスハイライトはデフォルトで提供されるが、 +|g:clojure_syntax_keywords| 変数にシンボルを追加することによって、追加のシンボ +ルをハイライトすることができる。値は、それぞれが識別子の |List| を含む構文グ +ループ名の |Dictionary| である必要がある。 > let g:clojure_syntax_keywords = { \ 'clojureMacro': ["defproject", "defcustom"], From ea0a3af17cf96d5773a5e9e38903b69f69eb1184 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 9 Jan 2022 14:48:56 +0900 Subject: [PATCH 09/21] syntax.jax: Update translate Co-authored-by: h_east --- doc/syntax.jax | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index d9a3c1a5c..e457dbd0f 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1079,9 +1079,9 @@ CLOJURE *ft-clojure-syntax* *g:clojure_fold* -|g:clojure_fold| を1に設定すると Clojure のコードの折り畳みが有効になる。 -標準のVimの折り畳みコマンド |fold-commands| で1行を越える任意のlist, vector, -mapを折り畳みできる。 +|g:clojure_fold| を `1` に設定すると、Clojureコードの折り畳みが有効になる。複 +数行にまたがる任意の list, vector または map は、標準のVimの |fold-commands| を +使用して折り畳むことができる。 *g:clojure_discard_macro* From 43f3cc599e2569cfd2fbe819e03b89d5c7572f90 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 9 Jan 2022 14:49:18 +0900 Subject: [PATCH 10/21] syntax.jax: fix translate Co-authored-by: h_east --- doc/syntax.jax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index e457dbd0f..13ee0df34 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1086,8 +1086,8 @@ CLOJURE *ft-clojure-syntax* *g:clojure_discard_macro* -この変数を1に設定すると Clojure の "Discard マクロ" の基本的なハイライトを有効 -にする。 +この変数を `1` に設定すると Clojure の "discard リーダーマクロ" の基本的なハイ +ライトを有効にする。 > #_(defn foo [x] (println x)) From b52ada4dc43a98e7009edf1ba0bada9f55037a06 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 9 Jan 2022 14:49:57 +0900 Subject: [PATCH 11/21] syntax.jax: fix translate Co-authored-by: h_east --- doc/syntax.jax | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 13ee0df34..57b24b99b 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1502,8 +1502,7 @@ FORM用の既定の拡張カラーモードではヘッダー命令とFORMプロ FORTH *forth.vim* *ft-forth-syntax* "*.fs" にマッチするファイルのタイプは F# か Forth である。自動判別がうまく機能 -しないなら、または F# ファイルを一切編集しないとわかっているなら、次をvimrcに -加えるとよい: > +しない場合、または F# ファイルを一切編集しない場合は、vimrcでこれを使用する: > :let filetype_fs = "forth" From a3cf824241fa9848ac450bf56527e3b422231c01 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sun, 9 Jan 2022 14:50:15 +0900 Subject: [PATCH 12/21] syntax.jax: fix translate Co-authored-by: h_east --- doc/syntax.jax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 57b24b99b..52668e77a 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1092,8 +1092,8 @@ CLOJURE *ft-clojure-syntax* #_(defn foo [x] (println x)) < -Note このオプションでは重なった Discard マクロのハイライトは正しくならない(例 -`#_#_`)。 +Note このオプションは、スタックされたdiscardマクロが正しくハイライトされない +(例 `#_#_`)。 COBOL *cobol.vim* *ft-cobol-syntax* From 2feb23a13556a95103a2e2125ded4e756dbc7180 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:18:34 +0900 Subject: [PATCH 13/21] syntax.jax: re-translate colorlist Co-authored-by: h_east --- doc/syntax.jax | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 52668e77a..67dec0407 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -5003,11 +5003,11 @@ guisp={color-name} *highlight-guisp* let v:colornames['alt_turquoise'] = '#22f0d3' colorscheme alt < - 他に頼るカラーリストの開発をしたいなら、あなたのカラー名にプリフィック - スを付けるのが最良である。習慣としてそれらのカラーリストは - colors/lists ディレクトリに置く。例を - '$VIMRUNTIME/colors/lists/csscolors.vim' に見ることができる。このリス - トはカラースキームが使われるときに読み込まれうる: > + 他人に信頼されるカラーリストを開発したい場合は、カラー名にプリフィック + スを付けるとよい。慣例により、これらのカラーリストは colors/lists ディ + レクトリに配置される。その例を + '$VIMRUNTIME/colors/lists/csscolors.vim' で見ることができる。このリス + トは、以下を使用したカラースキームによってソースされる: > :runtime colors/lists/csscolors.vim :highlight Comment guifg=css_turquoise From f1d7876f4d9dc8a295ebcc5ee65b1296cb5e7732 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:15:54 +0900 Subject: [PATCH 14/21] syntax.jax: fix typo --- doc/syntax.jax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 67dec0407..015cd9f74 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4669,7 +4669,7 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン 再帰的な読み込みはされない。つまりカラースキームスクリ プト中で ":colorscheme" を使うことはできない。 - + カラースキームのカスタマイズには2つの選択肢がある。 特定の色として表われているものを変えるために、カラース キームのロード前にカラー名を再定義できる。 From 7cf2ed17417f6272a93632dc3dc56f67eb9bc821 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:20:11 +0900 Subject: [PATCH 15/21] syntax.jax: colorlist override desc. fix Co-authored-by: h_east --- doc/syntax.jax | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 015cd9f74..6b007024d 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4996,9 +4996,9 @@ guisp={color-name} *highlight-guisp* :call extend(v:colornames, {'alt_turquoise': '#11f0c3'}, 'keep') :highlight Comment guifg=alt_turquoise guibg=magenta < - あなたが名前の付いたカラーに頼るカラースキームを利用するのなら、それら - の色について正確な出力に調整することができ、そのために |v:colornames| - の値をスキームをロードするまえに上書きできる: > + 名前付きのカラーに依存するカラースキームを使用していて、それらのカラー + の正確な見栄えを調整したい場合は、スキームをロードする前に + |v:colornames| の値をオーバーライドすることで調整できる: > let v:colornames['alt_turquoise'] = '#22f0d3' colorscheme alt From 48d9bb709d7e6486da2d37428e73ee79e25e5d0f Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:23:04 +0900 Subject: [PATCH 16/21] syntax.jax: fix trans and style Co-authored-by: h_east --- doc/syntax.jax | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 6b007024d..32febb5ff 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4687,12 +4687,12 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン hi Statement ctermfg=Blue guifg=Blue < カラースキームがロードされる前に全デフォルトのカラーリ - ストのスクリプト(`colors/lists/default.vim`)が実行され - |ColorSchemePre| 自動コマンドイベントが起動される。カ - ラースキームがロードされたら |ColorScheme| 自動コマン - ドイベントが起動される。 - カラースキームファイルを書くための情報については次 - を参照: > + ストのスクリプト(`colors/lists/default.vim`)が実行さ + れ、|ColorSchemePre| 自動コマンドイベントがトリガーさ + れる。カラースキームがロードされた後に |ColorScheme| + 自動コマンドイベントがトリガーされる。 + カラースキームファイルを書くための情報については次を参 + 照: > :edit $VIMRUNTIME/colors/README.txt :hi[ghlight] 属性がセットされたハイライトグループを全て表示する。 From 1da47f97beba97854110e4b443cb28dcaa9ff76b Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:34:29 +0900 Subject: [PATCH 17/21] syntax.jax: fix trans Co-authored-by: h_east --- doc/syntax.jax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 32febb5ff..bf0f3e762 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4679,10 +4679,10 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン let v:colornames['khaki'] = '#bdb76b' colorscheme desert < - さらなるカスタマイズとして、|:highlight-link| 連係の変 - 更や他の名前を使うならば、例えば - "~/.vim/colors/mine.vim"、`:runtime`を用いてオリジナル - のカラースキームを読み込む: > + |:highlight-link| の関連付けを変更するなど、さらにカス + タマイズするには、別の名前を使用する。例えば、 + "~/.vim/colors/mine.vim" と `:runtime` を使用してオリ + ジナルのカラースキームをロードする: > runtime colors/evening.vim hi Statement ctermfg=Blue guifg=Blue From 8217a620f2f79705f295fb23d2a467743a7be5ce Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:35:19 +0900 Subject: [PATCH 18/21] syntax.jax: fix trans Co-authored-by: h_east --- doc/syntax.jax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index bf0f3e762..4d64034d1 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4671,10 +4671,10 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン プト中で ":colorscheme" を使うことはできない。 カラースキームのカスタマイズには2つの選択肢がある。 - 特定の色として表われているものを変えるために、カラース - キームのロード前にカラー名を再定義できる。 - desert スキームはカーソルの色として khaki を使う。 - 同じ色のより暗いバリエーションを使うなら:: > + 特定の色の見栄えを変えるため、カラースキームのロード前 + にカラー名を再定義することができる。desert スキームは、 + カーソルに khaki 色が使用されている。同じ色のより暗い + バリエーションを使用する場合: > let v:colornames['khaki'] = '#bdb76b' colorscheme desert From 40e7efc8cb51a7b4038b48e2a02b9242c7da9530 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:38:14 +0900 Subject: [PATCH 19/21] syntax.jax: fix Squirrel translate Co-authored-by: h_east --- doc/syntax.jax | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 4d64034d1..81a74abc7 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -3080,10 +3080,10 @@ SQLにはANSI標準があるのだが、ほとんどのデータベースエン SQUIRREL *squirrel.vim* *ft-squirrel-syntax* -Squirrel は高級な命令型オブジェクト指向のプログラミング言語で、サイズ、メモリ、 -帯域幅、リアルタイム性を要求するゲームのようなアプリケーションに適合するように -設計されている軽量スクリプト言語である。次の拡張子のファイルが squirrel ファイ -ルとして認識される: .nut +Squirrel はハイレベルな命令型オブジェクト指向プログラミング言語であり、ビデオ +ゲームなどのアプリケーションのサイズ、メモリ帯域幅、リアルタイム性の要件に適す +る軽量なスクリプト言語として設計されている。次の拡張子のファイルは、Squirrel +ファイルとして認識される: .nut TCSH *tcsh.vim* *ft-tcsh-syntax* From 49672c9cdcbb9400ed1c32bdd4c8687d60047852 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Jan 2022 12:49:10 +0900 Subject: [PATCH 20/21] syntax.jax: fix translate 'load' --- doc/syntax.jax | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 81a74abc7..087addad6 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -775,7 +775,7 @@ g:html_font を使って1つないしは複数のフォントを変換された 5. 構文ファイルの覚書 *:syn-file-remarks* *b:current_syntax-variable* -Vimはロードした構文の名前を変数 "b:current_syntax" に記憶している。ある構文が +Vimは読み込んだ構文の名前を変数 "b:current_syntax" に記憶している。ある構文が 有効な場合だけある設定を行うにはこの変数が利用できる。例: > :au BufReadPost * if b:current_syntax == "csh" :au BufReadPost * do-some-things @@ -4671,10 +4671,10 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン プト中で ":colorscheme" を使うことはできない。 カラースキームのカスタマイズには2つの選択肢がある。 - 特定の色の見栄えを変えるため、カラースキームのロード前 - にカラー名を再定義することができる。desert スキームは、 - カーソルに khaki 色が使用されている。同じ色のより暗い - バリエーションを使用する場合: > + 特定の色の見栄えを変えるため、カラースキームを読み込む + 前にカラー名を再定義することができる。desert スキーム + は、カーソルに khaki 色が使用されている。同じ色のより + 暗いバリエーションを使用する場合: > let v:colornames['khaki'] = '#bdb76b' colorscheme desert @@ -4682,14 +4682,14 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン |:highlight-link| の関連付けを変更するなど、さらにカス タマイズするには、別の名前を使用する。例えば、 "~/.vim/colors/mine.vim" と `:runtime` を使用してオリ - ジナルのカラースキームをロードする: > + ジナルのカラースキームを読み込む: > runtime colors/evening.vim hi Statement ctermfg=Blue guifg=Blue -< カラースキームがロードされる前に全デフォルトのカラーリ +< カラースキームが読み込まれる前に全デフォルトのカラーリ ストのスクリプト(`colors/lists/default.vim`)が実行さ れ、|ColorSchemePre| 自動コマンドイベントがトリガーさ - れる。カラースキームがロードされた後に |ColorScheme| + れる。カラースキームが読み込まれた後に |ColorScheme| 自動コマンドイベントがトリガーされる。 カラースキームファイルを書くための情報については次を参 照: > @@ -4716,7 +4716,7 @@ Note: "*/" を含む文字列で行をまたぐものがあると、Cコメン ハイライトグループを追加する、または既存のグループに対 する強調を変更する。指定された色の名前が認識されない場 合、|'runtimepath'| 上で見付かる各 - `colors/lists/default.vim` がロードされる。 + `colors/lists/default.vim` が読み込まれる。 引数{key}={arg}については|highlight-args|を参照。 オプショナルな引数[default]については |:highlight-default|を参照。 @@ -4997,7 +4997,7 @@ guisp={color-name} *highlight-guisp* :highlight Comment guifg=alt_turquoise guibg=magenta < 名前付きのカラーに依存するカラースキームを使用していて、それらのカラー - の正確な見栄えを調整したい場合は、スキームをロードする前に + の正確な見栄えを調整したい場合は、スキームを読み込む前に |v:colornames| の値をオーバーライドすることで調整できる: > let v:colornames['alt_turquoise'] = '#22f0d3' From 35ff3e0bb1b7c30363f9347666aaff1b97cb0c33 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Tue, 11 Jan 2022 19:27:16 +0900 Subject: [PATCH 21/21] syntax.jax: fix translate Co-authored-by: K.Takata --- doc/syntax.jax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax.jax b/doc/syntax.jax index 087addad6..3c78ddfc6 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -4989,7 +4989,7 @@ guisp={color-name} *highlight-guisp* これらの値は16進であり、範囲は "00" から "ff"。例: > :highlight Comment guifg=#11f0c3 guibg=#ff00ff < - あなたがカラースキームの作者であり同じ16進数値を繰り返すのであれば + あなたがカラースキームの作者であり同じ16進数値を繰り返し使うのであれば |v:colornames| にカラー名を定義することができる。例えば: > # デフォルト値を提供するがユーザーが上書きすることを許容する。