From 418991143e6249e97fc42433021ce04c121209a0 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Sun, 28 Mar 2021 20:30:38 +0200 Subject: [PATCH] Add spell checking annotations to Vim syntax file --- boxes.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boxes.vim b/boxes.vim index 41ecfd5..57c4e35 100644 --- a/boxes.vim +++ b/boxes.vim @@ -34,8 +34,6 @@ syntax case ignore " Set the keyword characters syntax iskeyword a-z,A-Z -" TODO spell checking - In a boxes config file, only comments should be spell checked. - " " Key Words @@ -149,11 +147,12 @@ syntax region boxesNames matchgroup=boxesBoxStmt start=/\[ \t\ syntax match boxesDelim display /\/ nextgroup=delimRegion15,delimRegion06,delimRegion03,delimRegion04,delimRegion05,delimRegion02,delimRegion07,delimRegion08,delimRegion09,delimRegion10,delimRegion11,delimRegion12,delimRegion13,delimRegion14,delimRegion01,delimRegion16,delimRegion17,delimRegion18,delimRegion " Comments may appear anywhere in the file -syntax match boxesComment display /#.*$/ +syntax match boxesComment display /#.*$/ contains=@Spell " The SAMPLE block syntax region boxesSample matchgroup=boxesBlocks start="sample" end=+^[ \t]*ends[ \t\r]*$+ keepend + " " Synchronisation "