Sha256: 3d8cccd00cf3637e2ab731aecff4f7ced05b9df2316e2e53f9e2afe85d259c2e

Contents?: true

Size: 374 Bytes

Versions: 55

Compression:

Stored size: 374 Bytes

Contents

require 'hamlit/concerns/error'
require 'hamlit/concerns/indentable'

module Hamlit
  module Parsers
    module Filter
      include Concerns::Indentable

      def parse_filter(scanner)
        assert_scan!(scanner, /:/)

        name = scanner.scan(/.+/).strip
        lines = with_indented { read_lines }
        [:haml, :filter, name, lines]
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hamlit-1.7.2 lib/hamlit/parsers/filter.rb
hamlit-1.7.1 lib/hamlit/parsers/filter.rb
hamlit-1.7.0 lib/hamlit/parsers/filter.rb
hamlit-1.6.7 lib/hamlit/parsers/filter.rb
hamlit-1.6.6 lib/hamlit/parsers/filter.rb
hamlit-1.6.5 lib/hamlit/parsers/filter.rb
hamlit-1.6.4 lib/hamlit/parsers/filter.rb
hamlit-1.6.3 lib/hamlit/parsers/filter.rb
hamlit-1.6.2 lib/hamlit/parsers/filter.rb
hamlit-1.6.1 lib/hamlit/parsers/filter.rb
hamlit-1.6.0 lib/hamlit/parsers/filter.rb
hamlit-1.5.9 lib/hamlit/parsers/filter.rb
hamlit-1.5.8 lib/hamlit/parsers/filter.rb
hamlit-1.5.7 lib/hamlit/parsers/filter.rb
hamlit-1.5.6 lib/hamlit/parsers/filter.rb
hamlit-1.5.5 lib/hamlit/parsers/filter.rb
hamlit-1.5.4 lib/hamlit/parsers/filter.rb
hamlit-1.5.3 lib/hamlit/parsers/filter.rb
hamlit-1.5.2 lib/hamlit/parsers/filter.rb
hamlit-1.5.1 lib/hamlit/parsers/filter.rb