vendor/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb
# Expose for the SASS parser.
Expose for the SASS parser.
Expose for the SASS parser .
def catch_error(&block)
        old_throw_error, @throw_error = @throw_error, true
        pos = @scanner.pos
        line = @line
        offset = @offset
        expected = @expected
        if catch(:_sass_parser_error) {yield; false}
          @scanner.pos = pos
          @line = line
          @offset = offset
          @expected = expected
          {:pos => pos, :line => line, :expected => @expected, :block => block}
        end
      ensure
        @throw_error = old_throw_error
      end
def catch_error ( & block ) old_throw_error , @throw_error = @throw_error , true pos = @scanner . pos line = @line offset = @offset expected = @expected if catch ( :_sass_parser_error ) { yield ; false } @scanner . pos = pos @line = line @offset = offset @expected = expected { :pos => pos , :line => line , :expected => @expected , :block => block } end ensure @throw_error = old_throw_error end
Expose for the SASS parser.
Expose for the SASS parser .
block
<not_specific>