Sha256: 7ab290817ca552f0246ec2609bdfd93fe3a727390801fadb991e28ba48518a57
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require 'hamlit/concerns/error' module Hamlit module Parsers module Text include Concerns::Error def parse_text(scanner) ast = [:haml, :text] ast << (scanner.scan(/.+/) || '') ast end def parse_unescaped_text(scanner) assert_scan!(scanner, /! /) scanner.scan(/ +/) text = (scanner.scan(/.+/) || '') [:haml, :text, text, false] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hamlit-1.4.5 | lib/hamlit/parsers/text.rb |
hamlit-1.4.3 | lib/hamlit/parsers/text.rb |
hamlit-1.4.2 | lib/hamlit/parsers/text.rb |