diff --git a/source/specifications/inline-script-metadata.rst b/source/specifications/inline-script-metadata.rst index f9df2f0f5..49b5b691f 100644 --- a/source/specifications/inline-script-metadata.rst +++ b/source/specifications/inline-script-metadata.rst @@ -67,6 +67,14 @@ metadata: In circumstances where there is a discrepancy between the text specification and the regular expression, the text specification takes precedence. +The regular expression intentionally matches greedily, using the last possible +ending line within an uninterrupted sequence of valid embedded content lines. +This permits a standalone ``///`` within embedded content, as in the C# example +above; non-greedy matching would truncate that example. Consequently, apparent +blocks separated only by valid embedded content lines, including ``#``, are +matched as one block, with intervening delimiters included as content. An actual +blank line separates blocks. + Tools MUST NOT read from metadata blocks with types that have not been standardized by this specification.