@@ -426,6 +426,95 @@ cases:
426426 api.qdocinc:3:7:T.Sidebar:'ZQX' in the sidebar
427427 api.qdocinc:8:35:T.Header:'ZQX' in a header span
428428
429+ - name : html-data
430+ about : " `data` holds machine-readable content in any markup format, not
431+ only QDoc: an ordinary rule passes over it"
432+ files :
433+ .vale.ini : |
434+ StylesPath = styles
435+ MinAlertLevel = suggestion
436+
437+ [*]
438+ T.Prose = YES
439+ T.Meta = YES
440+ styles/T/Prose.yml : |
441+ extends: existence
442+ message: "'%s' as prose"
443+ level: error
444+ nonword: true
445+ raw:
446+ - ZQX
447+ styles/T/Meta.yml : |
448+ extends: existence
449+ message: "'%s' as metadata"
450+ scope: meta
451+ level: error
452+ nonword: true
453+ raw:
454+ - ZQX
455+ page.html : |
456+ <p>A ZQX in a paragraph.</p>
457+ <data value="1">ZQX-identifier</data>
458+ args : page.html
459+ exit : 1
460+ want : |
461+ page.html:1:6:T.Prose:'ZQX' as prose
462+ page.html:2:17:T.Meta:'ZQX' as metadata
463+
464+ - name : qdoc-meta
465+ about : " anchor names and image file names are a document's machine-readable
466+ content: an ordinary rule passes over them, and only a rule scoped to
467+ `meta` reaches one"
468+ files :
469+ .vale.ini : |
470+ StylesPath = styles
471+ MinAlertLevel = suggestion
472+
473+ [*]
474+ T.Prose = YES
475+ T.Anchor = YES
476+ T.Image = YES
477+ styles/T/Prose.yml : |
478+ extends: existence
479+ message: "'%s' as prose"
480+ level: error
481+ nonword: true
482+ raw:
483+ - ZQX
484+ styles/T/Anchor.yml : |
485+ extends: existence
486+ message: "'%s' in an anchor"
487+ scope: meta.class.anchor
488+ level: error
489+ nonword: true
490+ raw:
491+ - ZQX
492+ styles/T/Image.yml : |
493+ extends: existence
494+ message: "'%s' in a file name"
495+ scope: meta.class.image
496+ level: error
497+ nonword: true
498+ raw:
499+ - ZQX
500+ anchors.qdoc : |
501+ /*!
502+ \target ZQX-anchor
503+ \keyword {ZQX Keyword}
504+
505+ A ZQX in ordinary prose.
506+
507+ \image ZQX-diagram.png A caption with a ZQX in it.
508+ */
509+ args : anchors.qdoc
510+ exit : 1
511+ want : |
512+ anchors.qdoc:2:13:T.Anchor:'ZQX' in an anchor
513+ anchors.qdoc:3:15:T.Anchor:'ZQX' in an anchor
514+ anchors.qdoc:5:7:T.Prose:'ZQX' as prose
515+ anchors.qdoc:7:12:T.Image:'ZQX' in a file name
516+ anchors.qdoc:7:45:T.Prose:'ZQX' as prose
517+
429518 - name : qdoc-fragments
430519 about : doc comments in C++ sources lint as QDoc through `[formats]`, with
431520 alerts mapped back to the source; only `/*!` is documentation, while
0 commit comments