|
3 | 3 | helpname: 'syntax' |
4 | 4 | --- |
5 | 5 | <div id='vimCodeElement'> |
6 | | -<a class="Constant" href="syntax.html" name="syntax.txt">syntax.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Jun 03<br> |
| 6 | +<a class="Constant" href="syntax.html" name="syntax.txt">syntax.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Jul 20<br> |
7 | 7 | <br> |
8 | 8 | <br> |
9 | 9 | <span class="Identifier">VIMリファレンスマニュアル by Bram Moolenaar</span><br> |
|
268 | 268 | <span class="Special"> Debug o デバッグ命令</span><br> |
269 | 269 | <br> |
270 | 270 | <span class="Underlined"> *Underlined o 目立つ文章, HTMLリンク</span><br> |
| 271 | + *Bold o 太字のテキスト<br> |
| 272 | + *Italic o 斜体のテキスト<br> |
| 273 | + *BoldItalic o 太字かつ斜体のテキスト<br> |
271 | 274 | <br> |
272 | 275 | *Ignore o (見た目上)空白, 不可視 <a class="Identifier" href="syntax.html#hl-Ignore">hl-Ignore</a><br> |
273 | 276 | <br> |
|
1549 | 1552 | Erlang は Ericsson が開発した関数型プログラミング言語である。次の拡張子のファ<br> |
1550 | 1553 | イルが Erlang ファイルとして認識される: erl, hrl, yaws<br> |
1551 | 1554 | <br> |
1552 | | -組み込み関数 (BIFs: built-in functions) はデフォルトで強調表示される。それを無<br> |
1553 | | -効化するには vimrc で次のように設定する:<br> |
| 1555 | +Vim はデフォルトで、トリプルクォートで囲まれたドキュメント文字列をコメントとし<br> |
| 1556 | +てハイライトする。<br> |
1554 | 1557 | <br> |
1555 | | -<div class="helpExample"> :let g:erlang_highlight_bifs = 0</div> |
| 1558 | +トリプルクォートで囲まれたドキュメント文字列を Markdown としてハイライトしたい<br> |
| 1559 | +場合は、<a class="Identifier" href="starting.html#.vimrc">.vimrc</a> に次の行を追加する:<br> |
1556 | 1560 | <br> |
1557 | | -いくつかの特殊アトムを強調表示するには、vimrc で次のように設定する:<br> |
| 1561 | +<div class="helpExample"> :let g:erlang_use_markdown_for_docs = 1</div> |
1558 | 1562 | <br> |
1559 | | -<div class="helpExample"> :let g:erlang_highlight_special_atoms = 1</div> |
| 1563 | +ドキュメント文字列内のプレーンテキスト (つまり、Markdown 構文でハイライトされ<br> |
| 1564 | +ない文字) は、コメントとしてハイライト表示される。<br> |
| 1565 | +<br> |
| 1566 | +ドキュメント文字列内のプレーンテキストを別のハイライトグループでハイライトした<br> |
| 1567 | +い場合は、<a class="Identifier" href="starting.html#.vimrc">.vimrc</a> に次の行を追加する (この例では、文字列ハイライトグループを<br> |
| 1568 | +使用してプレーンテキストをハイライトしている):<br> |
| 1569 | +<br> |
| 1570 | +<div class="helpExample"> :let g:erlang_docstring_default_highlight = 'String'</div> |
| 1571 | +<br> |
| 1572 | +Markdown を有効にしていない場合、この行は指定されたハイライトグループに従って<br> |
| 1573 | +ドキュメントストリング全体をハイライトする。<br> |
| 1574 | +<br> |
| 1575 | +プレーンテキストのハイライトを無効にするには、以下の行を使用する:<br> |
| 1576 | +<br> |
| 1577 | +<div class="helpExample"> :let g:erlang_docstring_default_highlight = ''</div> |
| 1578 | +<br> |
| 1579 | +構成例:<br> |
| 1580 | +<br> |
| 1581 | +<div class="helpExample"> " ドキュメント文字列を Markdown としてハイライトする。<br> |
| 1582 | + :let g:erlang_use_markdown_for_docs = 1</div> |
| 1583 | +<br> |
| 1584 | +<div class="helpExample"> " 1. docstring 内の Markdown 要素を Markdown としてハイライトする。<br> |
| 1585 | + " 2. docstring 内のプレーンテキストを文字列としてハイライトする。<br> |
| 1586 | + :let g:erlang_use_markdown_for_docs = 1<br> |
| 1587 | + :let g:erlang_docstring_default_highlight = 'String'</div> |
| 1588 | +<br> |
| 1589 | +<div class="helpExample"> " docstring を文字列としてハイライトする (Markdown なし)。<br> |
| 1590 | + :let g:erlang_docstring_default_highlight = 'String'</div> |
| 1591 | +<br> |
| 1592 | +<div class="helpExample"> " 1. docstring 内の Markdown 要素を Markdown としてハイライトする。<br> |
| 1593 | + " 2. ドキュメント文字列内のプレーンテキストをハイライトしない。<br> |
| 1594 | + :let g:erlang_use_markdown_for_docs = 1<br> |
| 1595 | + :let g:erlang_docstring_default_highlight = ''</div> |
1560 | 1596 | <br> |
1561 | 1597 | <br> |
1562 | 1598 | <span class="Statement">ELIXIR </span><a class="Constant" href="syntax.html#elixir.vim" name="elixir.vim">elixir.vim</a> <a class="Constant" href="syntax.html#ft-elixir-syntax" name="ft-elixir-syntax">ft-elixir-syntax</a><br> |
|
4199 | 4235 | <br> |
4200 | 4236 | <span class="Statement">キーワードの定義</span> <a class="Constant" href="syntax.html#:syn-keyword" name=":syn-keyword">:syn-keyword</a><br> |
4201 | 4237 | <br> |
4202 | | -:sy[ntax] keyword <span class="Special">{group-name}</span> [<span class="Special">{options}</span>] <span class="Special">{keyword}</span> .. [<span class="Special">{options}</span>]<br> |
| 4238 | +:sy[ntax] keyword <span class="Special">{group-name}</span> [<span class="Special">{options}</span>] <span class="Special">{keyword}</span> ... [<span class="Special">{options}</span>]<br> |
4203 | 4239 | <br> |
4204 | 4240 | キーワードを定義する。<br> |
4205 | 4241 | <br> |
4206 | 4242 | <span class="Special">{group-name}</span> "Comment" のような構文グループ名。<br> |
4207 | 4243 | [<span class="Special">{options}</span>] 後述の<a class="Identifier" href="syntax.html#:syn-arguments">:syn-arguments</a>を参照。<br> |
4208 | | - <span class="Special">{keyword}</span> .. このグループに含めるキーワードのリスト。<br> |
| 4244 | + <span class="Special">{keyword}</span> ... このグループに含めるキーワードのリスト。<br> |
4209 | 4245 | <br> |
4210 | 4246 | 例:<br> |
4211 | 4247 | <div class="helpExample"> :syntax keyword Type int long char</div> |
|
0 commit comments