]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(mail): fix #13913 (#13917)
authorgi1242 <gi1242+github@gmail.com>
Thu, 25 Jan 2024 18:52:47 +0000 (13:52 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2024 18:52:47 +0000 (19:52 +0100)
switch to the DFA engine for the emoji collaction range

Co-authored-by: GI <gi1242+vim@gmail.com>
Signed-off-by: GI <gi1242@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/mail.vim

index 74b45c252a29abf64040599f28722315916a7db2..9beeba69e20ef07be51d17073a710daea36925ec 100644 (file)
@@ -2,7 +2,7 @@
 " Language:            Mail file
 " Previous Maintainer: Felix von Leitner <leitner@math.fu-berlin.de>
 " Maintainer:          GI <a@b.c>, 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 `\v<(((https?|ftp|gopher)://|(mailto|file|ne
 syn match mailEmail contains=@NoSpell "\v[_=a-z\./+0-9-]+\@[a-z0-9._-]+\a{2}"
 
 " Don't spell emojis
-syn match mailEmoji contains=@NoSpell "\v[\U1f300-\U1f64f\U1f900-\U1f9ff]"
+syn match mailEmoji contains=@NoSpell "\%#=2\v[\U1f300-\U1f64f\U1f900-\U1f9ff]"
 
 " Make sure quote markers in regions (header / signature) have correct color
 syn match mailQuoteExp1        contained "\v^(\> ?)"