Commit: runtime(html): bump length of character references in syntax script (#15022)

2 views
Skip to first unread message

Christian Brabandt

unread,
Jun 16, 2024, 11:00:15 AM6/16/24
to vim...@googlegroups.com
runtime(html): bump length of character references in syntax script (#15022)

Commit: https://github.com/vim/vim/commit/917ff8a19d2746dd922b7292dc61fb92e18b7ce2
Author: Mohamed Akram <mohd....@outlook.com>
Date: Sun Jun 16 18:47:36 2024 +0400

runtime(html): bump length of character references in syntax script (https://github.com/vim/vim/issues/15022)

This allows handling longer references such as
`&CounterClockwiseContourIntegral;`.

Signed-off-by: Mohamed Akram <mohd....@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/html.vim b/runtime/syntax/html.vim
index c975ae862..d067dde83 100644
--- a/runtime/syntax/html.vim
+++ b/runtime/syntax/html.vim
@@ -191,7 +191,7 @@ syn keyword htmlArg contained step title translate typemustmatch
syn match htmlArg contained "\<data-\h\%(\w\|[-.]\)*\%(\_s*=\)\@="

" special characters
-syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};"
+syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,32};"

" Comments (the real ones or the old netscape ones)
if exists("html_wrong_comments")
Reply all
Reply to author
Forward
0 new messages