Asciidoctor::Extensions::MacroProcessor
TODO break this out into different pattern types for example, FormalInlineMacro, ShortInlineMacro (no target) and other patterns
# File lib/asciidoctor/extensions.rb, line 429 def initialize(name, document, opts = {}) super @regexp = nil end
# File lib/asciidoctor/extensions.rb, line 434 def regexp if @options[:short_form] @regexp ||= %(\\?#{@name}:\[((?:\\\]|[^\]])*?)\]) else @regexp ||= %(\\?#{@name}:(\S+?)\[((?:\\\]|[^\]])*?)\]) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.