* Spell check .*ztst files by vim
@ 2022-09-27 6:48 Jun T
0 siblings, 0 replies; only message in thread
From: Jun T @ 2022-09-27 6:48 UTC (permalink / raw)
To: zsh-workers
If I use Util/ztst-syntax.vim as the vim syntax file for *.ztst,
it seems the following patch is necessary to enable spell check.
diff --git a/Util/ztst-syntax.vim b/Util/ztst-syntax.vim
index 639b9a4ec..42378e7a1 100644
--- a/Util/ztst-syntax.vim
+++ b/Util/ztst-syntax.vim
@@ -36,7 +36,7 @@ syn match ztstPayload /^\s.*/ contains=@zsh
syn match ztstExitCode /^\d\+\|^-/ nextgroup=ztstFlags
syn match ztstFlags /[.dDqf]*:/ contained nextgroup=ztstTestName contains=ztstColon
syn match ztstColon /:.\@=/ contained
-syn region ztstTestName start=// end=/$/ contained
+syn region ztstTestName start=// end=/$/ contained contains=@Spell
syn match ztstInputMarker /^<.\@=/ nextgroup=ztstInput
syn region ztstInput start=// end=/$/ contained
@@ -54,7 +54,7 @@ syn match ztstErrputLiteral /^[?].\@=/ nextgroup=ztstErrp
syn region ztstErrput start=// end=/$/ contained
syn match ztstFrequentExplanationMarker /^F:/ nextgroup=ztstFrequentExplanation
-syn region ztstFrequentExplanation start=// end=/$/ contained
+syn region ztstFrequentExplanation start=// end=/$/ contained contains=@Spell
syn match ztstDirective /^%.*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-27 6:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 6:48 Spell check .*ztst files by vim Jun T
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).