equal
deleted
inserted
replaced
83 atom("option value", tok => tok.is_name || tok.is_float) |
83 atom("option value", tok => tok.is_name || tok.is_float) |
84 |
84 |
85 val option_entry: Parser[Options => Options] = |
85 val option_entry: Parser[Options => Options] = |
86 { |
86 { |
87 command(SECTION) ~! text ^^ |
87 command(SECTION) ~! text ^^ |
88 { case _ ~ a => (options: Options) => options.set_section(a.trim) } | |
88 { case _ ~ a => (options: Options) => options.set_section(a) } | |
89 command(OPTION) ~! (option_name ~ keyword(":") ~ option_type ~ |
89 command(OPTION) ~! (option_name ~ keyword(":") ~ option_type ~ |
90 keyword("=") ~ option_value ~ (keyword("--") ~! text ^^ { case _ ~ x => x } | success(""))) ^^ |
90 keyword("=") ~ option_value ~ (keyword("--") ~! text ^^ { case _ ~ x => x } | success(""))) ^^ |
91 { case _ ~ (a ~ _ ~ b ~ _ ~ c ~ d) => (options: Options) => options.declare(a, b, c, d) } |
91 { case _ ~ (a ~ _ ~ b ~ _ ~ c ~ d) => (options: Options) => options.declare(a, b, c, d) } |
92 } |
92 } |
93 |
93 |