vale: restrict \qml and \code BlockIgnores to real code blocks
The \qml and \code patterns in BlockIgnores had no delimiter after the
command name, so they also matched every command that starts with those
letters: \qmltype, \qmlmodule, and 15 other \qml* commands, plus
\codeline. A match starting at \qmltype ran lazily to the next \endqml,
blanking every prose line in between, so no rule ever saw it.
Add \s after each command name. \s matches the newline that normally
follows \qml and \code, and also the space in argument forms such as
\code [cmake], so real blocks keep being ignored.
Also add nativetype, inqmlmodule, since, qtcmakepackage, and qtvariable
to the TokenIgnores command alternation. Without them, their arguments
reached Pass 1 as prose, so Microsoft.Spacing fired on the periods in
qualified module names and Qt.Spelling fired on lowercase CMake
variable names.
Remove the dead (?s)\\snippet.*?\\endsnippet pattern from BlockIgnores.
\endsnippet is not a QDoc command — it appears nowhere in the QDoc
source — so the pattern can never match. \snippet arguments are already
blanked by the TokenIgnores alternation.
Extend tests/CodeBlocks.qdoc to cover both patterns.
Change-Id: I571869e7f621f18e5fb4cb82297be11a46ef7ed8
Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>