From 3b9776e541790a71268561a47b78b0692d054fbf Mon Sep 17 00:00:00 2001 From: h-east Date: Thu, 7 Aug 2025 07:25:16 +0900 Subject: [PATCH] Update ft_sql.{txt,jax} --- doc/ft_sql.jax | 18 +++++++++--------- en/ft_sql.txt | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/ft_sql.jax b/doc/ft_sql.jax index b9740cd9a..fae620cdd 100644 --- a/doc/ft_sql.jax +++ b/doc/ft_sql.jax @@ -1,4 +1,4 @@ -*ft_sql.txt* For Vim バージョン 9.1. Last change: 2022 Apr 06 +*ft_sql.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06 by David Fishburn @@ -167,8 +167,8 @@ g:ftplugin_sql_objects の既定値は以下の通りです: > 1.4 マクロ *sql-macros* ---------- -|'define'| に以下の正規表現を設定することにより、マクロ定義を見つけるための -Vim の機能に対応しています: > +'define' に以下の正規表現を設定することにより、マクロ定義を見つけるための Vim +の機能に対応しています: > \c\<\(VARIABLE\|DECLARE\|IN\|OUT\|INOUT\)\> この正規表現は以下のようなコードに対応しています: > @@ -237,13 +237,13 @@ ftplugin/sql.vim では次のコマンドが定義されています: > このコマンドを引数なしで実行すると、インデントと構文スクリプトが既定値に戻りま す。既定値は |sql-type-default| を参照してください。Vi 互換モードをオフにして -いると (|'compatible'|)、 キーで引数を補完できます。 +いると ('compatible')、 キーで引数を補完できます。 コマンド名とスペースをタイプした後、引数を指定するために補完を利用できます。こ のコマンドは source したい Vim scriptの名前を受け取ります。 -|cmdline-completion| 機能により、SQLSetType コマンドは |'runtimepath'| から名 -前に 'sql' を含む Vim script を検索します。これは名前のスペルから推測を取り出 -します。以下が例です: > +|cmdline-completion| 機能により、SQLSetType コマンドは 'runtimepath' から名前 +に 'sql' を含む Vim script を検索します。これは名前のスペルから推測を取り出し +ます。以下が例です: > :SQLSetType :SQLSetType sqloracle :SQLSetType sqlanywhere @@ -728,7 +728,7 @@ Java, PHP, Javascript はどれもデータベースと対話できます。編 Perl ファイルの編集を始めます。自動的にファイルタイプが "perl" になります。デ フォルトで、ファイルタイプ・ファイルの ftplugin/perl.vim が読み込まれます。 |ft-syntax-omni| に書かれているコマンドによって構文補完プラグインを使っている -場合は、オプション |'omnifunc'| が "syntax#Complete" にセットされます。 +場合は、オプション 'omnifunc' が "syntax#Complete" にセットされます。 を押すと Perl の構文アイテムを含むオムニポップアップが表示されます。 ステップ 2 @@ -739,7 +739,7 @@ Perl ファイルの編集を始めます。自動的にファイルタイプが プが作成され、SQL 補完プラグインが初期化されます。全ての SQL 構文アイテムが準 備的にキャッシュされます。SQL ファイルタイプ・スクリプトは2種類の補完プラグイ ンを使おうとしていることを検出します。 で始まる SQL 用のマップが呼び出さ -れると、その実行中だけ |'omnifunc'| を切り替えます。そのため、 は (構 +れると、その実行中だけ 'omnifunc' を切り替えます。そのため、 は (構 文補完プラグインによる) Perl 用の補完のために使用し、 は SQL 補完機能のた めに使用できます。 diff --git a/en/ft_sql.txt b/en/ft_sql.txt index 110784d8c..0f466b407 100644 --- a/en/ft_sql.txt +++ b/en/ft_sql.txt @@ -1,4 +1,4 @@ -*ft_sql.txt* For Vim version 9.1. Last change: 2022 Apr 06 +*ft_sql.txt* For Vim version 9.1. Last change: 2025 Aug 06 by David Fishburn @@ -168,7 +168,7 @@ with comments: > 1.4 Macros *sql-macros* ---------- -Vim's feature to find macro definitions, |'define'|, is supported using this +Vim's feature to find macro definitions, 'define', is supported using this regular expression: > \c\<\(VARIABLE\|DECLARE\|IN\|OUT\|INOUT\)\> @@ -239,13 +239,13 @@ buffer basis, at any time. The ftplugin/sql.vim file defines this function: > Executing this function without any parameters will set the indent and syntax scripts back to their defaults, see |sql-type-default|. If you have turned -off Vi's compatibility mode, |'compatible'|, you can use the key to +off Vi's compatibility mode, 'compatible', you can use the key to complete the optional parameter. After typing the function name and a space, you can use the completion to supply a parameter. The function takes the name of the Vim script you want to source. Using the |cmdline-completion| feature, the SQLSetType function will -search the |'runtimepath'| for all Vim scripts with a name containing 'sql'. +search the 'runtimepath' for all Vim scripts with a name containing 'sql'. This takes the guess work out of the spelling of the names. The following are examples: > :SQLSetType @@ -755,7 +755,7 @@ Step 1 Begins by editing a Perl file. Vim automatically sets the filetype to "perl". By default, Vim runs the appropriate filetype file ftplugin/perl.vim. If you are using the syntax completion plugin by following -the directions at |ft-syntax-omni| then the |'omnifunc'| option has been set to +the directions at |ft-syntax-omni| then the 'omnifunc' option has been set to "syntax#Complete". Pressing will display the omni popup containing the syntax items for Perl. @@ -767,7 +767,7 @@ maps for SQL completion, see |sql-completion-maps|. Now these maps have been created and the SQL completion plugin has been initialized. All SQL syntax items have been cached in preparation. The SQL filetype script detects we are attempting to use two different completion plugins. Since the SQL maps -begin with , the maps will toggle the |'omnifunc'| when in use. So you +begin with , the maps will toggle the 'omnifunc' when in use. So you can use to continue using the completion for Perl (using the syntax completion plugin) and to use the SQL completion features.