From b9c2e2a019ede4dc2e18478ba268c7e40fe70938 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 2 Aug 2021 15:49:24 +0200 Subject: [PATCH] Added spellcheck_all flag to html and xml --- src/source_spellcheck.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/source_spellcheck.cpp b/src/source_spellcheck.cpp index 5071931..d13c2da 100644 --- a/src/source_spellcheck.cpp +++ b/src/source_spellcheck.cpp @@ -7,9 +7,9 @@ AspellConfig *Source::SpellCheckView::spellcheck_config = nullptr; Source::SpellCheckView::SpellCheckView(const boost::filesystem::path &file_path, const Glib::RefPtr &language) : BaseView(file_path, language) { - if(!language || // Spellcheck all words if no spec is found - is_language({"markdown", "latex", // Spellcheck all non-symbol words (not only string or comment context classes) - "go"})) // Go spec does not contain string or comment context classes + if(!language || // Spellcheck all words if no spec is found + is_language({"markdown", "latex", "html", "xml", // Spellcheck all non-symbol words (not only string or comment context classes) + "go"})) // Go spec does not contain string or comment context classes spellcheck_all = true; if(!spellcheck_config)