Method: JsDuck::DocParser#maybe_name
- Defined in:
- lib/jsduck/doc_parser.rb
#maybe_name ⇒ Object
matches identifier name if possible and sets it on @current_tag
489 490 491 492 493 494 |
# File 'lib/jsduck/doc_parser.rb', line 489 def maybe_name skip_horiz_white if look(@ident_pattern) @current_tag[:name] = match(@ident_pattern) end end |