Method: JsDuck::DocParser#parse_with_strings

Defined in:
lib/jsduck/doc_parser.rb

#parse_with_strings(re_rest) ⇒ Object

Helper for parse_balanced to parse rest of the text between braces, taking account the strings which might occur there.



555
556
557
558
559
560
561
562
563
# File 'lib/jsduck/doc_parser.rb', line 555

def parse_with_strings(re_rest)
  result = match(re_rest)
  while look(/['"]/)
    result += parse_string('"') if look(/"/)
    result += parse_string("'") if look(/'/)
    result += match(re_rest)
  end
  result
end