Project

General

Profile

Feature #15990

Updated by nobu (Nobuyoshi Nakada) almost 5 years ago

```ruby ``` 
 if false 
   puts 'false' 
 else if true 
   puts 'true' 
 end 
 ``` 

 This fails with "syntax error: unexpected end-of-input, expecting end". `else if` isn't `elsif`, of course, but if a file contains `else if` (especially on one line, though I don't know how easy that would be to track) and fails to parse, it is probably worth noting, especially since this kind of syntax error can't easily be traced back to a particular line.

Back