Method: JsDuck::Doc::Parser#parse_loop
- Defined in:
- lib/jsduck/doc/parser.rb
#parse_loop ⇒ Object
The main loop of the DocParser
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/jsduck/doc/parser.rb', line 51 def parse_loop add_tag({:tagname => :doc, :doc => :multiline}) while !@input.eos? do if look(/@/) parse_at_tag elsif look(/[^@]/) skip_to_next_at_tag end end end |