Sha256: 8d191f9bdcad7d63df288908f8c414f22551d5a973cbe5bdaad1a03046047166

Contents?: true

Size: 319 Bytes

Versions: 24

Compression:

Stored size: 319 Bytes

Contents

# @Opulent
module Opulent
  # @Parser
  class Parser
    # Match one line or multiline comments
    #
    def doctype(parent, indent)
      if (accept :doctype)
        buffer = accept(:line_feed)

        parent[@children] << [:doctype, buffer.strip.to_sym, {}, nil, indent]
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
opulent-1.5.5 lib/opulent/parser/doctype.rb
opulent-1.5.4 lib/opulent/parser/doctype.rb
opulent-1.5.3 lib/opulent/parser/doctype.rb
opulent-1.5.2 lib/opulent/parser/doctype.rb
opulent-1.5.1 lib/opulent/parser/doctype.rb
opulent-1.5.0 lib/opulent/parser/doctype.rb
opulent-1.4.8 lib/opulent/parser/doctype.rb
opulent-1.4.7 lib/opulent/parser/doctype.rb
opulent-1.4.6 lib/opulent/parser/doctype.rb
opulent-1.4.5 lib/opulent/parser/doctype.rb
opulent-1.4.3 lib/opulent/parser/doctype.rb
opulent-1.4.2 lib/opulent/parser/doctype.rb
opulent-1.4.1 lib/opulent/parser/doctype.rb
opulent-1.4.0 lib/opulent/parser/doctype.rb
opulent-1.3.3 lib/opulent/parser/doctype.rb
opulent-1.3.2 lib/opulent/parser/doctype.rb
opulent-1.3.1 lib/opulent/parser/doctype.rb
opulent-1.3.0 lib/opulent/parser/doctype.rb
opulent-1.2.1 lib/opulent/parser/doctype.rb
opulent-1.2.0 lib/opulent/parser/doctype.rb