1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-11 15:29:34 +00:00

Allow spaces after the array keyword (fixes #120)

This commit is contained in:
Karol Stasiak 2021-09-13 09:26:54 +02:00
parent 3b0aa9a425
commit 84dde8589c
2 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ abstract class MfParser[T](fileId: String, input: String, currentDirectory: Stri
p <- position("array definition")
bank <- bankDeclaration
const <- ("const".! ~ HWS).?
_ <- "array" ~ !letterOrDigit
_ <- "array" ~ !letterOrDigit ~ HWS
elementType <- ("(" ~/ AWS ~/ identifier ~ AWS ~ ")").? ~/ HWS
name <- identifier ~/ HWS
length <- ("[" ~/ AWS ~/ mfExpression(nonStatementLevel, false) ~ AWS ~ "]").? ~ HWS