Loading lib/jsduck/doc_parser.rb +5 −1 Original line number Diff line number Diff line Loading @@ -165,11 +165,15 @@ module JsDuck def skip_to_next_at_tag @current_tag[:doc] += match(/[^@]+/) while @current_tag[:doc][-1] =~ /\S/ && look(/@/) while !prev_char_is_whitespace? && look(/@/) @current_tag[:doc] += match(/@+[^@]+/) end end def prev_char_is_whitespace? @current_tag[:doc][-1,1] =~ /\s/ end # Processes anything else beginning with @-sign. # # - When @ is not followed by any word chards, do nothing. Loading Loading
lib/jsduck/doc_parser.rb +5 −1 Original line number Diff line number Diff line Loading @@ -165,11 +165,15 @@ module JsDuck def skip_to_next_at_tag @current_tag[:doc] += match(/[^@]+/) while @current_tag[:doc][-1] =~ /\S/ && look(/@/) while !prev_char_is_whitespace? && look(/@/) @current_tag[:doc] += match(/@+[^@]+/) end end def prev_char_is_whitespace? @current_tag[:doc][-1,1] =~ /\s/ end # Processes anything else beginning with @-sign. # # - When @ is not followed by any word chards, do nothing. Loading