summaryrefslogtreecommitdiffhomepage
path: root/dlang/src
diff options
context:
space:
mode:
Diffstat (limited to 'dlang/src')
-rw-r--r--dlang/src/validate.d5
1 files changed, 3 insertions, 2 deletions
diff --git a/dlang/src/validate.d b/dlang/src/validate.d
index bf8668b..b41edd8 100644
--- a/dlang/src/validate.d
+++ b/dlang/src/validate.d
@@ -25,7 +25,8 @@ struct SspFinding {
/+ ↓ specification section 6.3: the properties, in the order they are
emitted. A reader may rely on the order, so a validator can check it +/
private immutable string[] property_order = [
- "identifier", "part", "section", "parent", "last_descendant", "children",
+ "identifier", "part", "section", "parent", "last_descendant", "ocn_range",
+ "children",
"ancestors", "ancestors_collapsed", "dom_status", "dom_status_collapsed",
"heading_lev_collapsed", "parent_lev", "dummy", "ocn_off", "is_of_type",
"attrib", "meta_lang", "meta_syntax", "sha256", "image", "indent",
@@ -215,7 +216,7 @@ SspFinding[] validateSspFile(string filename, string major_known) {
string name = line[1 .. colon];
int rank = propertyRank(name);
if (rank < 0) {
- found ~= SspFinding(no, "6.3", "." ~ name ~ " is not one of the 42 properties");
+ found ~= SspFinding(no, "6.3", "." ~ name ~ " is not one of the " ~ property_order.length.to!string ~ " properties");
} else {
/+ ↓ the four repeatable properties may recur at the same rank +/
if (rank < prev_rank) {