Sha256: ce1db94db343c9223b2c151893954e7990890d78b707046468755bc7238c93b0

Contents?: true

Size: 557 Bytes

Versions: 15

Compression:

Stored size: 557 Bytes

Contents

# -*- coding: utf-8; frozen_string_literal: true -*-
#
#--
# Copyright (C) 2009-2019 Thomas Leitner <t_leitner@gmx.at>
#
# This file is part of kramdown which is licensed under the MIT.
#++
#

module Kramdown
  module Parser
    class Kramdown

      ESCAPED_CHARS = /\\([\\.*_+`<>()\[\]{}#!:|"'\$=-])/

      # Parse the backslash-escaped character at the current location.
      def parse_escaped_chars
        @src.pos += @src.matched_size
        add_text(@src[1])
      end
      define_parser(:escaped_chars, ESCAPED_CHARS, '\\\\')

    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/kramdown-2.4.0/lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.4.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.3.2 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.3.1 lib/kramdown/parser/kramdown/escaped_chars.rb
daqing_kramdown-2.3.2 lib/kramdown/parser/kramdown/escaped_chars.rb
daqing_kramdown-2.3.1 lib/kramdown/parser/kramdown/escaped_chars.rb
zine_brewer-1.5.0 vendor/bundle/ruby/2.7.0/gems/kramdown-2.3.0/lib/kramdown/parser/kramdown/escaped_chars.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/kramdown-2.3.0/lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.3.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.2.1 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.2.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.1.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.0.0 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.0.0.beta2 lib/kramdown/parser/kramdown/escaped_chars.rb
kramdown-2.0.0.beta1 lib/kramdown/parser/kramdown/escaped_chars.rb