aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorEn-En <39373446+En-En-Code@users.noreply.github.com>2024-03-18 11:19:20 +0000
committerGitHub <noreply@github.com>2024-03-18 11:19:20 +0000
commite34c23b7016aee5ac6483ab53fed1bce037cec5a (patch)
tree404f13cbc829ce9fdab6924184ce9b602275ffdc /runtime
parent66945e11b32ad648bc629581870ddd286d7c4673 (diff)
downloadrneovim-e34c23b7016aee5ac6483ab53fed1bce037cec5a.tar.gz
rneovim-e34c23b7016aee5ac6483ab53fed1bce037cec5a.tar.bz2
rneovim-e34c23b7016aee5ac6483ab53fed1bce037cec5a.zip
fix(tutor): set a value for ":syntax iskeyword" (#27833)
Problem: "NOTE"s, inline Vim script code, and links ending in digits may not be highlighted correctly within the :Tutor. Solution: set an explicit value for ":syntax iskeyword" that includes digits. Do it after ":syntax include"s, so the included syntax/sh.vim doesn't mess with the value. Increase screen test width so all text within the conclusion section is visible. Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/syntax/tutor.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/syntax/tutor.vim b/runtime/syntax/tutor.vim
index 83ca547fdd..399026790a 100644
--- a/runtime/syntax/tutor.vim
+++ b/runtime/syntax/tutor.vim
@@ -8,6 +8,8 @@ syn include @TUTORSHELL syntax/sh.vim
unlet b:current_syntax
syn include @VIMNORMAL syntax/vimnormal.vim
+syn iskeyword @,-,_,48-57
+
syn match tutorLink /\[.\{-}\](.\{-})/ contains=tutorInlineNormal
syn match tutorLinkBands /\[\|\]\|(\|)/ contained containedin=tutorLink,tutorLinkAnchor conceal
syn match tutorLinkAnchor /(.\{-})/ contained containedin=tutorLink conceal