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>
commitdd0b93aa1d61c4d167023ad8a47d3bcf5551efb1
parent4e5a7433aab373f27467896f7b6e8842f434363a
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
commit timeThu, 6 Aug 2026 09:29:45 +0000