slim-template/slim

View on GitHub
Slim::Grammar
A

No issues here. Congrats!

module Slim
  # Slim expression grammar
  # @api private
  module Grammar
    extend Temple::Grammar

    TextTypes << :verbatim | :explicit | :implicit | :inline

    Expression <<
      [:slim, :control, String, Expression]           |
      [:slim, :output, Bool, String, Expression]      |
      [:slim, :interpolate, String]                   |
      [:slim, :embedded, String, Expression]          |
      [:slim, :text, TextTypes, Expression]           |
      [:slim, :attrvalue, Bool, String]

    HTMLAttr <<
      [:slim, :splat, String]
  end
end

Size

Lines of code
15

Test coverage

Coverage
100%
Relevant LOC
6
Covered LOC
6
Missed LOC
0