... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\injection]]]]]
 [\\library
  ["[0]" /]])

(the .public documentation
  (List $.Documentation)
  (list ($.module /._
                  "")

        ($.definition /.escapable?)
        ($.definition /.dangling_escape)
        ($.definition /.invalid_escape)
        ($.definition /.invalid_unicode_escape)

        ($.definition /.escaped
          "Yields a escaped version of the text."
          ($.example (' (escaped text))))

        ($.definition /.un_escaped
          (%.message "Yields an un-escaped text."
                     \n "Fails if it was improperly escaped.")
          ($.example (' (un_escaped text))))

        ($.definition /.literal
          "If given a escaped text literal, expands to an un-escaped version."
          ($.example (' (/.literal "Line 1\nLine 2")))
          ($.comment "=>")
          ($.example (' (%.message "Line 1" \n
                                   "Line 2"))))
        ))
