mirror of
https://github.com/KarolS/millfork.git
synced 2024-09-27 12:57:41 +00:00
Allow spaces after the array keyword (fixes #120)
This commit is contained in:
parent
3b0aa9a425
commit
84dde8589c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user