"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/syntaxcheck.cpp" between
texstudio-3.1.0.tar.gz and texstudio-3.1.1.tar.gz

About: TeXstudio is an integrated environment for writing LaTeX documents (as easy and comfortable as possible).

syntaxcheck.cpp  (texstudio-3.1.0):syntaxcheck.cpp  (texstudio-3.1.1)
skipping to change at line 586 skipping to change at line 586
i+=2; i+=2;
tkLength+=tk1.length+tk2.length; tkLength+=tk1.length+tk2.length;
} }
} }
} }
} }
} }
word = latexToPlainWordwithReplacementList(word, mReplacementList); //remove special chars word = latexToPlainWordwithReplacementList(word, mReplacementList); //remove special chars
if (speller->hideNonTextSpellingErrors && (containsEnv(*ltxCommands, "math", activeEnv)||containsEnv(*ltxCommands, "picture", activeEnv))){ if (speller->hideNonTextSpellingErrors && (containsEnv(*ltxCommands, "math", activeEnv)||containsEnv(*ltxCommands, "picture", activeEnv))){
word.clear(); word.clear();
tk.subtype=Token::formula; tk.ignoreSpelling=true;
}else{
tk.ignoreSpelling=false;
} }
if (!word.isEmpty() && !speller->check(word) ) { if (!word.isEmpty() && !speller->check(word) ) {
if (word.endsWith('-') && speller->check(word.left(word.length() - 1))) if (word.endsWith('-') && speller->check(word.left(word.length() - 1)))
continue; // word ended with '-', without that letter, word is correct (e.g. set-up / german hypehantion) continue; // word ended with '-', without that letter, word is correct (e.g. set-up / german hypehantion)
if(word.endsWith('.')){ if(word.endsWith('.')){
tkLength--; // don't take point into misspelled word tkLength--; // don't take point into misspelled word
} }
Error elem; Error elem;
elem.range = QPair<int, int>(tk.start, tk.length); elem.range = QPair<int, int>(tk.start, tk.length);
elem.type = ERR_spelling; elem.type = ERR_spelling;
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)