Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here are some more general spell-checking exception rules to put in <code>.vim/after/syntax/{LANG}.vim</code> files:</p> <pre><code>" Disable spell-checking of bizarre words: " - Mixed alpha / numeric " - Mixed case (starting upper) / All upper " - Mixed case (starting lower) " - Contains strange character syn match spellingException "\&lt;\w*\d[\d\w]*\&gt;" transparent contained containedin=pythonComment,python.*String contains=@NoSpell syn match spellingException "\&lt;\(\u\l*\)\{2,}\&gt;" transparent contained containedin=pythonComment,python.*String contains=@NoSpell syn match spellingException "\&lt;\(\l\+\u\+\)\+\l*\&gt;" transparent contained containedin=pythonComment,python.*String contains=@NoSpell syn match spellingException "\S*[/\\_`]\S*" transparent contained containedin=pythonComment,python.*String contains=@NoSpell </code></pre> <p>Change <code>pythonComment,python.*String</code> for your language.</p> <ul> <li><code>transparent</code> means that the match inherits its highlighting properties from the containing block (i.e. these rules do not change the way text is displayed).</li> <li><code>contained</code> prevents these matches from extending past the containing block (the last rule ends with <code>\S*</code> which would likely match past the end of a block)</li> <li><code>containedin</code> holds a list of existing syntax groups to add these new rules to.</li> <li><code>contains=@NoSpell</code> overrides any and all inherited groups, thus telling the spellchecker to skip the matched text.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload