@@ 5,11 5,12 @@
" Johannes Zellner <johannes@zellner.org>
" Paul Siegmann <pauls@euronet.nl>
" Lorenzo Ruiz <lars.bs@hotmail.com>
-" Last Change: Sept 24, 2019
+" Last Changed: Nov 03, 2019
" Filenames: *.xml
" Last Change:
" 20190923 - Fix xmlEndTag to match xmlTag (vim/vim#884)
" 20190924 - Fix xmlAttribute property (amadeus/vim-xml@d8ce1c946)
+" 20191103 - Enable spell checking globally
" CONFIGURATION:
" syntax folding can be turned on by
@@ 53,6 54,12 @@ set cpo&vim
syn case match
+" Allow spell checking in tag values,
+" there is no syntax region for that,
+" so enable spell checking in top-level elements
+" <tag>This text is spell checked</tag>
+syn spell toplevel
+
" mark illegal characters
syn match xmlError "[<&]"