From 8cd18beae3f96eba23a1b39777ea2a8c944cbfca Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 1 Jun 2017 16:01:49 -0400 Subject: [PATCH] Python and Ruby can both contain parse errors. --- src/Language/Python/Syntax.hs | 1 + src/Language/Ruby/Syntax.hs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Language/Python/Syntax.hs b/src/Language/Python/Syntax.hs index 0f47369ac..12d1fae7e 100644 --- a/src/Language/Python/Syntax.hs +++ b/src/Language/Python/Syntax.hs @@ -45,6 +45,7 @@ type Syntax' = , Statement.Return , Statement.Yield , Syntax.Empty + , Syntax.Error [Error Grammar] , Syntax.Identifier , [] ] diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index 3c2fa64d0..86c5bb25c 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -46,6 +46,7 @@ type Syntax' = , Statement.While , Statement.Yield , Syntax.Empty + , Syntax.Error [Error Grammar] , Syntax.Identifier , [] ]