runtime(mail): fix #13913 (#13917)
Commit:
https://github.com/vim/vim/commit/046a0f75d025783a141b85b9e85a34559fd8cf63
Author: gi1242 <[email protected]>
Date: Thu Jan 25 13:52:47 2024 -0500
runtime(mail): fix https://github.com/vim/vim/issues/13913
(https://github.com/vim/vim/issues/13917)
switch to the DFA engine for the emoji collaction range
Co-authored-by: GI <[email protected]>
Signed-off-by: GI <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/mail.vim b/runtime/syntax/mail.vim
index 74b45c252..9beeba69e 100644
--- a/runtime/syntax/mail.vim
+++ b/runtime/syntax/mail.vim
@@ -2,7 +2,7 @@
" Language: Mail file
" Previous Maintainer: Felix von Leitner <[email protected]>
" Maintainer: GI <[email protected]>, where a='gi1242+vim', b='gmail', c='com'
-" Last Change: Thu 18 Jan 2024 06:34:38 PM EST
+" Last Change: Thu 25 Jan 2024 10:34:02 AM EST
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
@@ -64,7 +64,7 @@ syn match mailURL contains=@NoSpell `
<(((https?|ftp|gopher)://|(mailto|file|ne
syn match mailEmail contains=@NoSpell " [_=a-z\./+0-9-]+\@[a-z0-9._-]+ {2}"
" Don't spell emojis
-syn match mailEmoji contains=@NoSpell " [\U1f300-\U1f64f\U1f900-\U1f9ff]"
+syn match mailEmoji contains=@NoSpell "\%#=2 [\U1f300-\U1f64f\U1f900-\U1f9ff]"
" Make sure quote markers in regions (header / signature) have correct color
syn match mailQuoteExp1 contained " ^(\> ?)"
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rT4xI-00Cql3-JU%40256bit.org.