zapnap / rdocinfo

New development has moved to http://github.com/lsegal/rubydoc.info
http://rdoc.info
MIT License
18 stars 3 forks source link

yard syntax error #39

Closed chikamichi closed 14 years ago

chikamichi commented 14 years ago

Hi.

I encounter a problem using yardoc for the project http://github.com/chikamichi/metamorphosis


$ rake yard
(in /home/jd/dev/ruby/metamorphosis)
[warn]: Syntax error in `todo`:(3,20): syntax error, unexpected tidentifier, expecting keyword_do or '{' or '('
[warn]: Syntax error in `license`:(2,44): syntax error, unexpected tinteger, expecting keyword_do or '{' or '('
[warn]: Syntax error in `version`:(1,3): no . floating literal anymore; put 0 before dot
[warn]: Syntax error in `readme.md`:(7,10): syntax error, unexpected tidentifier, expecting keyword_do or '{' or '('

Did anyone run into this already?

lsegal commented 14 years ago

This is not a bug. You are telling YARD to try and parse your readme documents as Ruby source files. Remove the non-Ruby-source-files from your .document and you should no longer get those warnings.

chikamichi commented 14 years ago

Thank you very much :) I added lib/*/.rb btw.

zapnap commented 14 years ago

Thanks Loren!