KronicDeth/intellij-elixir — pull request #76 by KronicDeth (2014-12-14 17:08:40+00:00)
Title: Recover from missing end-of-expression

Resolves #75

Adds `adjacentExpression` as a secondary choice for expressionList. `adjacentExpression` is just an `expression`, but it's a separate rule so that MissingEndOfExpression inspection can mark `adjacentExpression` as an error. It is an error because the `endOfExpression` is not required before `adjacentExpression`:

```bnf
private expressionList ::= expression (endOfExpression+ expression | adjacentExpression)*
```

`MissingEndOfExpression` inspection has two quick fixes for inserting either the `;` or a newline for the end-of-expression.