gracelang / minigrace

Self-hosting compiler for the Grace programming language
39 stars 22 forks source link

Indexing by 2 not enforced #225

Closed apblack closed 7 years ago

apblack commented 7 years ago

Minigrace does not always enforce the rule that an indentation change must be by 2 or more. For example, the following is accepted:

print
 "hello"

See also https://github.com/gracelang/language/issues/116

apblack commented 7 years ago

This is fixed in commit 561212e. The above example is added as a failing test.