diff --git a/src/toml/toml_parser.zig b/src/toml/toml_parser.zig index 49f6e60c65..c8021a39b1 100644 --- a/src/toml/toml_parser.zig +++ b/src/toml/toml_parser.zig @@ -136,6 +136,11 @@ pub const TOML = struct { loc, ); }, + // `-` is a valid identifier + .t_minus => { + try p.lexer.next(); + return p.e(E.String{ .data = "-" }, loc); + }, // what we see as a number here could actually be a string .t_numeric_literal => { const literal = p.lexer.raw();