Methods

Radius::SquiggleScanner

Public Instance Methods

scanner_regex(prefix = nil) click to toggle source

The regular expression used to find (1) opening and self-enclosed tag names, (2) self-enclosing trailing slash, (3) attributes and (4) closing tag

# File lib/radius/parser/squiggle_scanner.rb, line 6
def scanner_regex(prefix = nil)
  %{\{\s*([\w:]+?)(\s+(?:\w+\s*=\s*(?:"[^"]*?"|'[^']*?')\s*)*|)(\/?)\}|\{\/([\w:]+?)\s*\}}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.