class Asciidoctor::Extensions::InlineMacroProcessor

FIXME for inline macro, we need to have some way to specify the text as a passthrough
for example, FullInlineMacro, ShortInlineMacro (no target) and other patterns
TODO break this out into different pattern types

InlineMacroProcessor implementations must extend InlineMacroProcessor.
custom name.
Public: InlineMacroProcessors are used to handle block macros that have a

def regexp

Once this method is called, the regexp is considered frozen.
Lookup the regexp option, resolving it first if necessary.
def regexp
  @config[:regexp] ||= resolve_regexp @name.to_s, @config[:format]
end

def resolve_regexp name, format

def resolve_regexp name, format
  raise ::ArgumentError, %(invalid name for inline macro: #{name}) unless MacroNameRx.match? name
  @@rx_cache[[name, format]] ||= /\\?#{name}:#{format == :short ? '(){0}' : '(\S+?)'}\[(|#{CC_ANY}*?[^\\])\]/
end