Erlang recently added the `-moduledoc` attribute as well as triple
quoted strings, see [1].

[1]: https://www.erlang.org/doc/system/documentation.html
---
 runtime/syntax/erlang.vim | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/runtime/syntax/erlang.vim b/runtime/syntax/erlang.vim
index 0b256193a..081c7940f 100644
--- a/runtime/syntax/erlang.vim
+++ b/runtime/syntax/erlang.vim
@@ -54,8 +54,9 @@ syn match erlangNumberInteger 
'\<\%([2-9]\|[12]\d\|3[0-6]\)\+#[[:alnum:]]\+\>'
 syn match erlangNumberFloat   '\<\d\+\.\d\+\%([eE][+-]\=\d\+\)\=\>'
 
 " Strings, atoms, characters
-syn region erlangString            start=/"/ end=/"/ 
contains=erlangStringModifier
-syn region erlangQuotedAtom        start=/'/ end=/'/ 
contains=erlangQuotedAtomModifier
+syn region erlangString             start=/"/ end=/"/ 
contains=erlangStringModifier
+syn region erlangString             start=/"""/ end=/"""/ 
contains=erlangStringModifier
+syn region erlangQuotedAtom         start=/'/ end=/'/ 
contains=erlangQuotedAtomModifier
 syn match erlangStringModifier     
'\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)\|\~\%([ni~]\|\%(-\=\d\+\|\*\)\=\.\=\%(\*\|\d\+\)\=\%(\..\)\=[tl]*[cfegswpWPBX#bx+]\)'
 contained
 syn match erlangQuotedAtomModifier '\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)' 
contained
 syn match erlangModifier           
'\$\%([^\\]\|\\\%(\o\{1,3}\|x\x\x\|x{\x\+}\|\^.\|.\)\)'
@@ -94,7 +95,7 @@ syn match erlangBitType 
'\%(\/\%(\s\|\n\|%.*\n\)*\)\@<=\%(integer\|float\|binary
 
 " Constants and Directives
 syn match erlangUnknownAttribute '^\s*-\%(\s\|\n\|%.*\n\)*\l[[:alnum:]_@]*' 
contains=erlangComment
-syn match erlangAttribute 
'^\s*-\%(\s\|\n\|%.*\n\)*\%(behaviou\=r\|compile\|export\(_type\)\=\|file\|import\|module\|author\|copyright\|doc\|vsn\|on_load\|optional_callbacks\|feature\)\>'
 contains=erlangComment
+syn match erlangAttribute 
'^\s*-\%(\s\|\n\|%.*\n\)*\%(behaviou\=r\|compile\|export\(_type\)\=\|file\|import\|module\(doc\)\=\|author\|copyright\|doc\|vsn\|on_load\|optional_callbacks\|feature\)\>'
 contains=erlangComment
 syn match erlangInclude   
'^\s*-\%(\s\|\n\|%.*\n\)*\%(include\|include_lib\)\>' contains=erlangComment
 syn match erlangRecordDef '^\s*-\%(\s\|\n\|%.*\n\)*record\>' 
contains=erlangComment
 syn match erlangDefine    '^\s*-\%(\s\|\n\|%.*\n\)*\%(define\|undef\)\>' 
contains=erlangComment
-- 
2.39.5

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/20250223162020.60930-1-jc%40mail.jchri.st.

Raspunde prin e-mail lui