1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-08-12 11:29:20 +00:00

Multiline value support in platform definition files

This commit is contained in:
Karol Stasiak 2018-12-17 10:41:28 +01:00
parent 8fcf628c8f
commit 235700c44c
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@
Every platform is defined in an `.ini` file with an appropriate name.
As an extension, multiline entries are supported:
if a line ends with a backslash character, the value continues to the next line.
#### `[compilation]` section
* `arch` CPU architecture. It defines which instructions are available. Available values:

View File

@ -176,7 +176,7 @@ object Platform {
}))
val os = conf.getSection("output")
val outputPackager = SequenceOutput(os.get(classOf[String], "format", "").split("[, ]+").filter(_.nonEmpty).map {
val outputPackager = SequenceOutput(os.get(classOf[String], "format", "").split("[, \n\t\r]+").filter(_.nonEmpty).map {
case "startaddr" => StartAddressOutput
case "startpage" => StartPageOutput
case "endaddr" => EndAddressOutput