class Asciidoctor::Extensions::InlineMacroProcessor
TODO break this out into different pattern types for example, FormalInlineMacro, ShortInlineMacro (no target) and other patterns
Public Class Methods
new(name, document, opts = {})
click to toggle source
Calls superclass method
Asciidoctor::Extensions::MacroProcessor.new
# File lib/asciidoctor/extensions.rb, line 429 def initialize(name, document, opts = {}) super @regexp = nil end
Public Instance Methods
regexp()
click to toggle source
# File lib/asciidoctor/extensions.rb, line 434 def regexp if @options[:short_form] @regexp ||= %r(\?#{@name}:\[((?:\\]|[^\]])*?)\]) else @regexp ||= %r(\?#{@name}:(\S+?)\[((?:\\]|[^\]])*?)\]) end end