Loading lib/jsduck/source_file.rb +12 −4 Original line number Diff line number Diff line Loading @@ -80,11 +80,19 @@ module JsDuck # Parses the file depending on filename as JS or CSS def parse begin if @filename =~ /\.s?css$/ CssParser.new(@contents, @options).parse else JsParser.new(@contents, @options).parse end rescue puts "Error while parsing #{@filename}: #{$!}" puts puts "Here's a full backtrace:" puts $!.backtrace exit(1) end end # Creates two-way link between sourcefile and doc-object. Loading Loading
lib/jsduck/source_file.rb +12 −4 Original line number Diff line number Diff line Loading @@ -80,11 +80,19 @@ module JsDuck # Parses the file depending on filename as JS or CSS def parse begin if @filename =~ /\.s?css$/ CssParser.new(@contents, @options).parse else JsParser.new(@contents, @options).parse end rescue puts "Error while parsing #{@filename}: #{$!}" puts puts "Here's a full backtrace:" puts $!.backtrace exit(1) end end # Creates two-way link between sourcefile and doc-object. Loading