Skip to content

Commit e08c004

Browse files
authored
toml: allow true and false as keys when parsing root table (#26144)
1 parent 47972ab commit e08c004

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

vlib/toml/parser/parser.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ pub fn (mut p Parser) root_table() ! {
486486
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'skipping formatting "${p.tok.kind}" "${p.tok.lit}"')
487487
continue
488488
}
489-
.bare, .quoted, .number, .minus, .underscore {
489+
.bare, .boolean, .quoted, .number, .minus, .underscore {
490490
// Peek forward as far as we can skipping over space formatting tokens.
491491
peek_tok, _ := p.peek_over(1, keys_and_space_formatting)!
492492

vlib/toml/tests/toml_lang_test.v

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const no_jq = os.getenv('VNO_JQ') == '1'
1818
// NOTE: entries in this list are valid TOML that the parser should work with, but currently does not.
1919
const valid_exceptions = [
2020
'do_not_remove',
21-
'comment/after-literal-no-ws.toml',
2221
'string/escapes.toml',
2322
'string/multiline-quotes.toml',
2423
'table/array-implicit-and-explicit-after.toml',

0 commit comments

Comments
 (0)