Browse Source

Added spellcheck_all flag to html and xml

pipelines/353213535
eidheim 4 years ago
parent
commit
b9c2e2a019
  1. 2
      src/source_spellcheck.cpp

2
src/source_spellcheck.cpp

@ -8,7 +8,7 @@ AspellConfig *Source::SpellCheckView::spellcheck_config = nullptr;
Source::SpellCheckView::SpellCheckView(const boost::filesystem::path &file_path, const Glib::RefPtr<Gsv::Language> &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)
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;

Loading…
Cancel
Save