Commits

isop44  committed a200481

Allow python code to end w/o a newline

  • Participants
  • Parent commits bc76be0

Comments (0)

Files changed (1)

File Grammar/Grammar.pg

 }
 
 token suite1 {
-    <stmt_list> <.newline> {*}
+    <stmt_list>   [ $ | <.newline> ]    {*}
 }
 
 token suite2 {
 
 token statement {
     | <compound_stmt> {*}                        #= compound_stmt
-    | <stmt_list> <.newline> {*}                 #= stmt_list
+    | <stmt_list>  [ $ | <.newline> ]   {*}      #= stmt_list
 }
 
 token stmt_list {