Packages

o

laika.parse.directive

DirectiveParsers

object DirectiveParsers

Parsers for all types of custom directives that can be used in templates or as inline or block elements in markup documents.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectiveParsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BodyParserBuilder = (DirectiveSpec) ⇒ Parser[Option[SourceFragment]]
  2. case class DirectiveSpec(name: String, fence: String) extends Product with Serializable
  3. case class ParsedDirective(name: String, attributes: ObjectBuilderValue, body: Option[SourceFragment]) extends Product with Serializable

    Represents the parsed but unprocessed content of a directive.

  4. case class Part(key: AttributeKey, content: String) extends Product with Serializable

    Represents one part of a directive (an attribute or a body element).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def declarationParser(escapedText: EscapedTextParsers, supportsCustomFence: Boolean = false): Parser[(String, ObjectBuilderValue, String)]

    Parses a full directive declaration, containing all its attributes, but not the body elements.

  7. def directiveParser(bodyContent: BodyParserBuilder, escapedText: EscapedTextParsers, supportsCustomFence: Boolean = false): Parser[ParsedDirective]

    Parses one directive instance containing its name declaration, all attributes and all body elements.

    Parses one directive instance containing its name declaration, all attributes and all body elements.

    bodyContent

    the parser for the body content which is different for a block directive than for a span or template directive

    escapedText

    the parser for escape sequences according to the rules of the host markup language

    supportsCustomFence

    indicates whether the directive declaration allows the addition of a custom closing fence

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hoconReference[T](f: (Key, Boolean, SourceFragment) ⇒ T, e: (InvalidSpan) ⇒ T): PrefixedParser[T]

    Parses a HOCON-style reference enclosed between ${ and } that may be marked as optional (${?some.param}).

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val nameDecl: Parser[String]

    Parses a name declaration that start with a letter and continues with letters, numbers or the symbols '-' or '_'.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. val nestedBraces: PrefixedParser[Text]
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. lazy val wsOrNl: Parser[String]

    Parses horizontal whitespace or newline characters.

Inherited from AnyRef

Inherited from Any

Ungrouped