Skip to content

Commit 3dac890

Browse files
authored
Merge pull request #2230 from h-east/update-ft_sql
Update ft_sql.{txt,jax}
2 parents c271755 + 3b9776e commit 3dac890

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

doc/ft_sql.jax

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*ft_sql.txt* For Vim バージョン 9.1. Last change: 2022 Apr 06
1+
*ft_sql.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06
22

33
by David Fishburn
44

@@ -167,8 +167,8 @@ g:ftplugin_sql_objects の既定値は以下の通りです: >
167167
168168
1.4 マクロ *sql-macros*
169169
----------
170-
|'define'| に以下の正規表現を設定することにより、マクロ定義を見つけるための
171-
Vim の機能に対応しています: >
170+
'define' に以下の正規表現を設定することにより、マクロ定義を見つけるための Vim
171+
の機能に対応しています: >
172172
\c\<\(VARIABLE\|DECLARE\|IN\|OUT\|INOUT\)\>
173173
174174
この正規表現は以下のようなコードに対応しています: >
@@ -237,13 +237,13 @@ ftplugin/sql.vim では次のコマンドが定義されています: >
237237
238238
このコマンドを引数なしで実行すると、インデントと構文スクリプトが既定値に戻りま
239239
す。既定値は |sql-type-default| を参照してください。Vi 互換モードをオフにして
240-
いると (|'compatible'|)、<Tab> キーで引数を補完できます。
240+
いると ('compatible')、<Tab> キーで引数を補完できます。
241241

242242
コマンド名とスペースをタイプした後、引数を指定するために補完を利用できます。こ
243243
のコマンドは source したい Vim scriptの名前を受け取ります。
244-
|cmdline-completion| 機能により、SQLSetType コマンドは |'runtimepath'| から名
245-
前に 'sql' を含む Vim script を検索します。これは名前のスペルから推測を取り出
246-
します。以下が例です: >
244+
|cmdline-completion| 機能により、SQLSetType コマンドは 'runtimepath' から名前
245+
'sql' を含む Vim script を検索します。これは名前のスペルから推測を取り出し
246+
ます。以下が例です: >
247247
:SQLSetType
248248
:SQLSetType sqloracle
249249
:SQLSetType sqlanywhere
@@ -728,7 +728,7 @@ Java, PHP, Javascript はどれもデータベースと対話できます。編
728728
Perl ファイルの編集を始めます。自動的にファイルタイプが "perl" になります。デ
729729
フォルトで、ファイルタイプ・ファイルの ftplugin/perl.vim が読み込まれます。
730730
|ft-syntax-omni| に書かれているコマンドによって構文補完プラグインを使っている
731-
場合は、オプション |'omnifunc'| が "syntax#Complete" にセットされます。
731+
場合は、オプション 'omnifunc' が "syntax#Complete" にセットされます。
732732
<C-X><C-O> を押すと Perl の構文アイテムを含むオムニポップアップが表示されます。
733733

734734
ステップ 2
@@ -739,7 +739,7 @@ Perl ファイルの編集を始めます。自動的にファイルタイプが
739739
プが作成され、SQL 補完プラグインが初期化されます。全ての SQL 構文アイテムが準
740740
備的にキャッシュされます。SQL ファイルタイプ・スクリプトは2種類の補完プラグイ
741741
ンを使おうとしていることを検出します。<C-C> で始まる SQL 用のマップが呼び出さ
742-
れると、その実行中だけ |'omnifunc'| を切り替えます。そのため、<C-X><C-O> は (構
742+
れると、その実行中だけ 'omnifunc' を切り替えます。そのため、<C-X><C-O> は (構
743743
文補完プラグインによる) Perl 用の補完のために使用し、<C-C> は SQL 補完機能のた
744744
めに使用できます。
745745

en/ft_sql.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*ft_sql.txt* For Vim version 9.1. Last change: 2022 Apr 06
1+
*ft_sql.txt* For Vim version 9.1. Last change: 2025 Aug 06
22

33
by David Fishburn
44

@@ -168,7 +168,7 @@ with comments: >
168168
169169
1.4 Macros *sql-macros*
170170
----------
171-
Vim's feature to find macro definitions, |'define'|, is supported using this
171+
Vim's feature to find macro definitions, 'define', is supported using this
172172
regular expression: >
173173
\c\<\(VARIABLE\|DECLARE\|IN\|OUT\|INOUT\)\>
174174
@@ -239,13 +239,13 @@ buffer basis, at any time. The ftplugin/sql.vim file defines this function: >
239239
240240
Executing this function without any parameters will set the indent and syntax
241241
scripts back to their defaults, see |sql-type-default|. If you have turned
242-
off Vi's compatibility mode, |'compatible'|, you can use the <Tab> key to
242+
off Vi's compatibility mode, 'compatible', you can use the <Tab> key to
243243
complete the optional parameter.
244244

245245
After typing the function name and a space, you can use the completion to
246246
supply a parameter. The function takes the name of the Vim script you want to
247247
source. Using the |cmdline-completion| feature, the SQLSetType function will
248-
search the |'runtimepath'| for all Vim scripts with a name containing 'sql'.
248+
search the 'runtimepath' for all Vim scripts with a name containing 'sql'.
249249
This takes the guess work out of the spelling of the names. The following are
250250
examples: >
251251
:SQLSetType
@@ -755,7 +755,7 @@ Step 1
755755
Begins by editing a Perl file. Vim automatically sets the filetype to
756756
"perl". By default, Vim runs the appropriate filetype file
757757
ftplugin/perl.vim. If you are using the syntax completion plugin by following
758-
the directions at |ft-syntax-omni| then the |'omnifunc'| option has been set to
758+
the directions at |ft-syntax-omni| then the 'omnifunc' option has been set to
759759
"syntax#Complete". Pressing <C-X><C-O> will display the omni popup containing
760760
the syntax items for Perl.
761761

@@ -767,7 +767,7 @@ maps for SQL completion, see |sql-completion-maps|. Now these maps have
767767
been created and the SQL completion plugin has been initialized. All SQL
768768
syntax items have been cached in preparation. The SQL filetype script detects
769769
we are attempting to use two different completion plugins. Since the SQL maps
770-
begin with <C-C>, the maps will toggle the |'omnifunc'| when in use. So you
770+
begin with <C-C>, the maps will toggle the 'omnifunc' when in use. So you
771771
can use <C-X><C-O> to continue using the completion for Perl (using the syntax
772772
completion plugin) and <C-C> to use the SQL completion features.
773773

0 commit comments

Comments
 (0)