aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/xml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/xml.vim')
-rw-r--r--runtime/syntax/xml.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/syntax/xml.vim b/runtime/syntax/xml.vim
index f7c7894369..7c9791a7cc 100644
--- a/runtime/syntax/xml.vim
+++ b/runtime/syntax/xml.vim
@@ -4,11 +4,12 @@
" Repository: https://github.com/chrisbra/vim-xml-ftplugin
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
" Author: Paul Siegmann <pauls@euronet.nl>
-" Last Changed: 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
@@ -52,6 +53,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 "[<&]"