Issue #15924 has been updated by nobu (Nobuyoshi Nakada).


It is an example of syntax error, cannot be fallen back?

YARD itself just warns it but succeeds.

```
$ echo $'<<\"EOS\n\"\nEOS' > yardtest.rb
$ ~/.gem/ruby/2.7.0/bin/yard doc yardtest.rb 
[warn]: Syntax error in `yardtest.rb`:(1,0): unterminated here document identifier
Files:           0
Modules:         0 (    0 undocumented)
Classes:         0 (    0 undocumented)
Constants:       0 (    0 undocumented)
Attributes:      0 (    0 undocumented)
Methods:         0 (    0 undocumented)
 100.00% documented
```

----------------------------------------
Bug #15924: Ripper::Lexer RuntimeError - Ripper FATAL - master/trunk
https://bugs.ruby-lang.org/issues/15924#change-78617

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-06-15T03:04:16Z master 5d79054906) [x64-mingw32]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
YARD based docs systems use Ripper for highlighting both source code and 'code snippets' in comments and rdoc/md files.

Using the build shown, I have an error as shown:

```
lib/ruby/2.7.0/ripper/lexer.rb:101:in `lex'
lib/ruby/2.7.0/ripper/lexer.rb:123:in `parse'
lib/ruby/2.7.0/ripper/lexer.rb:123:in `parse': [Ripper FATAL] unknown token -1 (RuntimeError)
```

A quick look shows that it was parsing the rdoc files in the doc folder.  Sorry for not being able to check further tonite, I'll look more tomorrow...



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>