|
1 |
| -*syntax.txt* For Vim version 9.1. Last change: 2025 Jun 03 |
| 1 | +*syntax.txt* For Vim version 9.1. Last change: 2025 Jul 20 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -262,6 +262,9 @@ you can see the actual color, except for "Ignore"):
|
262 | 262 | Debug debugging statements
|
263 | 263 |
|
264 | 264 | *Underlined text that stands out, HTML links
|
| 265 | + *Bold bold text |
| 266 | + *Italic italic text |
| 267 | + *BoldItalic bold and italic text |
265 | 268 |
|
266 | 269 | *Ignore left blank, hidden |hl-Ignore|
|
267 | 270 |
|
@@ -1573,15 +1576,47 @@ ERLANG *erlang.vim* *ft-erlang-syntax*
|
1573 | 1576 | Erlang is a functional programming language developed by Ericsson. Files with
|
1574 | 1577 | the following extensions are recognized as Erlang files: erl, hrl, yaws.
|
1575 | 1578 |
|
1576 |
| -The BIFs (built-in functions) are highlighted by default. To disable this, |
1577 |
| -put the following line in your vimrc: > |
| 1579 | +Vim highlights triple-quoted docstrings as comments by default. |
1578 | 1580 |
|
1579 |
| - :let g:erlang_highlight_bifs = 0 |
| 1581 | +If you want triple-quoted docstrings highlighted as Markdown, add the |
| 1582 | +following line to your |.vimrc|: > |
1580 | 1583 |
|
1581 |
| -To enable highlighting some special atoms, put this in your vimrc: > |
| 1584 | + :let g:erlang_use_markdown_for_docs = 1 |
1582 | 1585 |
|
1583 |
| - :let g:erlang_highlight_special_atoms = 1 |
| 1586 | +The plain text inside the docstrings (that is, the characters that are not |
| 1587 | +highlighted by the Markdown syntax) is still highlighted as a comment. |
1584 | 1588 |
|
| 1589 | +If you want to highlight the plain text inside the docstrings using a |
| 1590 | +different highlight group, add the following line to your |.vimrc| (the |
| 1591 | +example highlights plain text using the String highlight group): > |
| 1592 | +
|
| 1593 | + :let g:erlang_docstring_default_highlight = 'String' |
| 1594 | +
|
| 1595 | +If you don't enable Markdown, this line highlights the full docstrings |
| 1596 | +according to the specified highlight group. |
| 1597 | + |
| 1598 | +Use the following line to disable highlighting for the plain text: > |
| 1599 | +
|
| 1600 | + :let g:erlang_docstring_default_highlight = '' |
| 1601 | +
|
| 1602 | +Configuration examples: > |
| 1603 | +
|
| 1604 | + " Highlight docstrings as Markdown. |
| 1605 | + :let g:erlang_use_markdown_for_docs = 1 |
| 1606 | +
|
| 1607 | + " 1. Highlight Markdown elements in docstrings as Markdown. |
| 1608 | + " 2. Highlight the plain text in docstrings as String. |
| 1609 | + :let g:erlang_use_markdown_for_docs = 1 |
| 1610 | + :let g:erlang_docstring_default_highlight = 'String' |
| 1611 | +
|
| 1612 | + " Highlight docstrings as strings (no Markdown). |
| 1613 | + :let g:erlang_docstring_default_highlight = 'String' |
| 1614 | +
|
| 1615 | + " 1. Highlight Markdown elements in docstrings as Markdown. |
| 1616 | + " 2. Don't highlight the plain text in docstrings. |
| 1617 | + :let g:erlang_use_markdown_for_docs = 1 |
| 1618 | + :let g:erlang_docstring_default_highlight = '' |
| 1619 | +< |
1585 | 1620 |
|
1586 | 1621 | ELIXIR *elixir.vim* *ft-elixir-syntax*
|
1587 | 1622 |
|
@@ -4318,13 +4353,13 @@ SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
|
4318 | 4353 |
|
4319 | 4354 | DEFINING KEYWORDS *:syn-keyword*
|
4320 | 4355 |
|
4321 |
| -:sy[ntax] keyword {group-name} [{options}] {keyword} .. [{options}] |
| 4356 | +:sy[ntax] keyword {group-name} [{options}] {keyword} ... [{options}] |
4322 | 4357 |
|
4323 | 4358 | This defines a number of keywords.
|
4324 | 4359 |
|
4325 | 4360 | {group-name} Is a syntax group name such as "Comment".
|
4326 | 4361 | [{options}] See |:syn-arguments| below.
|
4327 |
| - {keyword} .. Is a list of keywords which are part of this group. |
| 4362 | + {keyword} ... Is a list of keywords which are part of this group. |
4328 | 4363 |
|
4329 | 4364 | Example: >
|
4330 | 4365 | :syntax keyword Type int long char
|
|
0 commit comments