diff runtime/syntax/rmd.vim @ 32974:d46f974fd69e

runtime: Fix typos in various files Commit: https://github.com/vim/vim/commit/3fc7a7e44abda6505ccd39a6d067db6e5173cbf6 Author: Viktor Sz?pe <viktor@szepe.net> Date: Wed Aug 23 21:20:00 2023 +0200 runtime: Fix typos in various files closes: https://github.com/vim/vim/issues/12836 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Viktor Sz?pe <viktor@szepe.net>
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Aug 2023 07:33:27 +0200
parents b2412874362f
children 033f22d4a52a
line wrap: on
line diff
--- a/runtime/syntax/rmd.vim
+++ b/runtime/syntax/rmd.vim
@@ -81,7 +81,7 @@ else
     syn match  yamlEscape contained '\\\%([\\"abefnrtv\^0_ NLP\n]\|x\x\x\|u\x\{4}\|U\x\{8}\)'
     syn match  yamlSingleEscape contained "''"
     syn match yamlComment /#.*/ contained
-    " A second colon is a syntax error, unles within a string or following !expr
+    " A second colon is a syntax error, unless within a string or following !expr
     syn match yamlColonError /:\s*[^'^"^!]*:/ contained
     if &filetype == 'quarto'
       syn region pandocYAMLHeader matchgroup=rmdYamlBlockDelim start=/\%(\%^\|\_^\s*\n\)\@<=\_^-\{3}\ze\n.\+/ end=/^---$/ keepend contains=rmdYamlFieldTtl,yamlFlowString,yamlComment,yamlColonError