aboutsummaryrefslogtreecommitdiff
path: root/lib/render/escape.mli
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-19 08:09:12 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-19 08:09:12 +0200
commita526d934cea17ff1b76ddad5c5f2934fb85c11cb (patch)
treee9fad9bb85fe265e5e8777704da6ba85b77fe122 /lib/render/escape.mli
parenteacb54ae44f655c010fdfc2b7292d24f06ffc445 (diff)
downloadcolitur-a526d934cea17ff1b76ddad5c5f2934fb85c11cb.tar.gz
colitur-a526d934cea17ff1b76ddad5c5f2934fb85c11cb.zip
fix(render): reject empty tag paths, sharpen the raw-form test
F1: test_no_raw_or_partial_form's first assertion only excluded one literal shape (Ok [Var ["{name"]]), so it could not actually catch a future raw/unescaped constructor under a different name. Replace it with an assertion of the real parse result for {{{name}}} (Ok [Var ["{name"]; Text "}"]), documented behaviour rather than a guarantee this test cannot check -- the real guarantee is structural: node has exactly four constructors and none of them is raw. F2: {{.}}, {{#}}, {{^}} and {{/}} used to parse to a Var/Section/ Inverted with an empty path, reachable but never designed. This engine has no "current context" for a bare dot to mean, so a bare-dot or empty-sigil path is now a parse error at lex time, covering all four sigil forms via one path helper. The existing "empty tag {{}}" branch is unchanged and still reachable (a fully empty body is a distinct case from a sigil with an empty path).
Diffstat (limited to 'lib/render/escape.mli')
0 files changed, 0 insertions, 0 deletions