fix build under newer KConfig by bump cmake min version

This commit is contained in:
2024-09-04 19:01:58 +08:00
parent 727a2ec214
commit 9fb3681e3a
1022 changed files with 4414 additions and 1375 deletions

View File

@ -0,0 +1,189 @@
# This is a full-line comment
key = "value" # This is a comment at the end of a line
another = "# This is not a comment"
key = "value"
bare_key = "value"
bare-key = "value"
1234 = "value"
"127.0.0.1" = "value"
"character encoding" = "value"
"ʎǝʞ" = "value"
'key2' = "value"
'quoted "value"' = "value"
fruit.name = "banana" # this is best practice
fruit. color = "yellow" # same as fruit.color
fruit . flavor = "banana" # same as fruit.flavor
name = "Orange"
physical.color = "orange"
physical.shape = "round"
site."google.com" = true
str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF."
str1 = """
Roses are red
Violets are blue"""
# The following strings are byte-for-byte equivalent:
str1 = "The quick brown fox jumps over the lazy dog."
str2 = """
The quick brown \
fox jumps over \
the lazy dog."""
str3 = """\
The quick brown \
fox jumps over \
the lazy dog.\
"""
str4 = """Here are two quotation marks: "". Simple enough."""
# str5 = """Here are three quotation marks: """.""" # INVALID
str5 = """Here are three quotation marks: ""\"."""
str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\"."""
# "This," she said, "is just a pointless statement."
str7 = """"This," she said, "is just a pointless statement.""""
# What you see is what you get.
winpath = 'C:\Users\nodejs\templates'
winpath2 = '\\ServerX\admin$\system32\'
quoted = 'Tom "Dubs" Preston-Werner'
regex = '<\i\c*\s*>'
regex2 = '''I [dw]on't need \d{2} apples'''
lines = '''
The first newline is
trimmed in raw strings.
All other whitespace
is preserved.
'''
quot15 = '''Here are fifteen quotation marks: """""""""""""""'''
# 'That,' she said, 'is still pointless.'
str = ''''That,' she said, 'is still pointless.''''
int1 = +99
int2 = 42
int3 = 0
int4 = -17
int5 = 1_000
int6 = 5_349_221
int7 = 53_49_221 # Indian number system grouping
int8 = 1_2_3_4_5 # VALID but discouraged
# hexadecimal with prefix `0x`
hex1 = 0xDEADBEEF
hex2 = 0xdeadbeef
hex3 = 0xdead_beef
# octal with prefix `0o`
oct1 = 0o01234567
oct2 = 0o755 # useful for Unix file permissions
# binary with prefix `0b`
bin1 = 0b11010110
# fractional
flt1 = +1.0
flt2 = 3.1415
flt3 = -0.01
# exponent
flt4 = 5e+22
flt5 = 1e06
flt6 = -2E-2
# both
flt7 = 6.626e-34
flt8 = 224_617.445_991_228
# infinity
sf1 = inf # positive infinity
sf2 = +inf # positive infinity
sf3 = -inf # negative infinity
# not a number
sf4 = nan # actual sNaN/qNaN encoding is implementation-specific
sf5 = +nan # same as `nan`
sf6 = -nan # valid, actual encoding is implementation-specific
bool1 = true
bool2 = false
odt1 = 1979-05-27T07:32:00Z
odt2 = 1979-05-27T00:32:00-07:00
odt3 = 1979-05-27T00:32:00.999999-07:00
odt4 = 1979-05-27 07:32:00Z
ldt1 = 1979-05-27T07:32:00
ldt2 = 1979-05-27T00:32:00.999999
ld1 = 1979-05-27
lt1 = 07:32:00
lt2 = 00:32:00.999999
integers = [ 1, 2, 3 ]
colors = [ "red", "yellow", "green" ]
nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ]
nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]
string_array = [ "all", 'strings', """are the same""", '''type''' ]
# Mixed-type arrays are allowed
numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
contributors = [
"Foo Bar <foo@example.com>",
{ name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
]
integers2 = [
1, 2, 3
]
integers3 = [
1,
2, # this is ok
]
[table-1]
key1 = "some string"
key2 = 123
[table-2]
key1 = "another string"
key2 = 456
[dog."tater.man"]
type.name = "pug"
[a.b.c] # this is best practice
[ d.e.f ] # same as [d.e.f]
[ g . h . i ] # same as [g.h.i]
[ j . "ʞ" . 'l' ] # same as [j."ʞ".'l']
[product]
type = { name = "Nail" }
[[products]]
name = "Hammer"
sku = 738594937
[[products]] # empty table within the array
[[products]]
name = "Nail"
sku = 284758393
points = [ { x = 1, y = 2, z = 3 },
{ x = 7, y = 8, z = 9 },
{ x = 2, y = 4, z = 8 } ]
invalid # invalid, missing value
key = identifier # also invalid, identifier must be one of true, false, inf, nan

View File

@ -0,0 +1,190 @@
0 400 0 # This is a full-line comment
0 400 0 key = "value" # This is a comment at the end of a line
0 400 0 another = "# This is not a comment"
0 400 0
0 400 0 key = "value"
0 400 0 bare_key = "value"
0 400 0 bare-key = "value"
0 400 0 1234 = "value"
0 400 0
0 400 0 "127.0.0.1" = "value"
0 400 0 "character encoding" = "value"
0 400 0 "ʎǝʞ" = "value"
0 400 0 'key2' = "value"
0 400 0 'quoted "value"' = "value"
0 400 0
0 400 0 fruit.name = "banana" # this is best practice
0 400 0 fruit. color = "yellow" # same as fruit.color
0 400 0 fruit . flavor = "banana" # same as fruit.flavor
0 400 0
0 400 0 name = "Orange"
0 400 0 physical.color = "orange"
0 400 0 physical.shape = "round"
0 400 0 site."google.com" = true
0 400 0
0 400 0 str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF."
0 400 0
0 400 0 str1 = """
0 400 0 Roses are red
0 400 0 Violets are blue"""
0 400 0
0 400 0 # The following strings are byte-for-byte equivalent:
0 400 0 str1 = "The quick brown fox jumps over the lazy dog."
0 400 0 str2 = """
0 400 0 The quick brown \
0 400 0
0 400 0
0 400 0 fox jumps over \
0 400 0 the lazy dog."""
0 400 0 str3 = """\
0 400 0 The quick brown \
0 400 0 fox jumps over \
0 400 0 the lazy dog.\
0 400 0 """
0 400 0
0 400 0 str4 = """Here are two quotation marks: "". Simple enough."""
0 400 0 # str5 = """Here are three quotation marks: """.""" # INVALID
0 400 0 str5 = """Here are three quotation marks: ""\"."""
0 400 0 str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\"."""
0 400 0 # "This," she said, "is just a pointless statement."
0 400 0 str7 = """"This," she said, "is just a pointless statement.""""
0 400 0
0 400 0 # What you see is what you get.
0 400 0 winpath = 'C:\Users\nodejs\templates'
0 400 0 winpath2 = '\\ServerX\admin$\system32\'
0 400 0 quoted = 'Tom "Dubs" Preston-Werner'
0 400 0 regex = '<\i\c*\s*>'
0 400 0
0 400 0 regex2 = '''I [dw]on't need \d{2} apples'''
0 400 0 lines = '''
0 400 0 The first newline is
0 400 0 trimmed in raw strings.
0 400 0 All other whitespace
0 400 0 is preserved.
0 400 0 '''
0 400 0
0 400 0 quot15 = '''Here are fifteen quotation marks: """""""""""""""'''
0 400 0 # 'That,' she said, 'is still pointless.'
0 400 0 str = ''''That,' she said, 'is still pointless.''''
0 400 0
0 400 0 int1 = +99
0 400 0 int2 = 42
0 400 0 int3 = 0
0 400 0 int4 = -17
0 400 0
0 400 0 int5 = 1_000
0 400 0 int6 = 5_349_221
0 400 0 int7 = 53_49_221 # Indian number system grouping
0 400 0 int8 = 1_2_3_4_5 # VALID but discouraged
0 400 0
0 400 0 # hexadecimal with prefix `0x`
0 400 0 hex1 = 0xDEADBEEF
0 400 0 hex2 = 0xdeadbeef
0 400 0 hex3 = 0xdead_beef
0 400 0
0 400 0 # octal with prefix `0o`
0 400 0 oct1 = 0o01234567
0 400 0 oct2 = 0o755 # useful for Unix file permissions
0 400 0
0 400 0 # binary with prefix `0b`
0 400 0 bin1 = 0b11010110
0 400 0
0 400 0 # fractional
0 400 0 flt1 = +1.0
0 400 0 flt2 = 3.1415
0 400 0 flt3 = -0.01
0 400 0
0 400 0 # exponent
0 400 0 flt4 = 5e+22
0 400 0 flt5 = 1e06
0 400 0 flt6 = -2E-2
0 400 0
0 400 0 # both
0 400 0 flt7 = 6.626e-34
0 400 0
0 400 0 flt8 = 224_617.445_991_228
0 400 0
0 400 0 # infinity
0 400 0 sf1 = inf # positive infinity
0 400 0 sf2 = +inf # positive infinity
0 400 0 sf3 = -inf # negative infinity
0 400 0
0 400 0 # not a number
0 400 0 sf4 = nan # actual sNaN/qNaN encoding is implementation-specific
0 400 0 sf5 = +nan # same as `nan`
0 400 0 sf6 = -nan # valid, actual encoding is implementation-specific
0 400 0
0 400 0 bool1 = true
0 400 0 bool2 = false
0 400 0
0 400 0 odt1 = 1979-05-27T07:32:00Z
0 400 0 odt2 = 1979-05-27T00:32:00-07:00
0 400 0 odt3 = 1979-05-27T00:32:00.999999-07:00
0 400 0 odt4 = 1979-05-27 07:32:00Z
0 400 0
0 400 0 ldt1 = 1979-05-27T07:32:00
0 400 0 ldt2 = 1979-05-27T00:32:00.999999
0 400 0
0 400 0 ld1 = 1979-05-27
0 400 0
0 400 0 lt1 = 07:32:00
0 400 0 lt2 = 00:32:00.999999
0 400 0
0 400 0 integers = [ 1, 2, 3 ]
0 400 0 colors = [ "red", "yellow", "green" ]
0 400 0 nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ]
0 400 0 nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ]
0 400 0 string_array = [ "all", 'strings', """are the same""", '''type''' ]
0 400 0
0 400 0 # Mixed-type arrays are allowed
0 400 0 numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ]
0 400 0 contributors = [
0 400 0 "Foo Bar <foo@example.com>",
0 400 0 { name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
0 400 0 ]
0 400 0
0 400 0 integers2 = [
0 400 0 1, 2, 3
0 400 0 ]
0 400 0
0 400 0 integers3 = [
0 400 0 1,
0 400 0 2, # this is ok
0 400 0 ]
0 400 0
2 400 0 + [table-1]
0 401 0 | key1 = "some string"
0 401 0 | key2 = 123
0 401 0 |
2 400 0 + [table-2]
0 401 0 | key1 = "another string"
0 401 0 | key2 = 456
0 401 0 |
2 401 0 + [dog."tater.man"]
0 402 0 | type.name = "pug"
0 402 0 |
0 402 0 | [a.b.c] # this is best practice
0 402 0 | [ d.e.f ] # same as [d.e.f]
0 402 0 | [ g . h . i ] # same as [g.h.i]
2 402 0 + [ j . "ʞ" . 'l' ] # same as [j."ʞ".'l']
0 403 0 |
2 400 0 + [product]
0 401 0 | type = { name = "Nail" }
0 401 0 |
2 400 0 + [[products]]
0 401 0 | name = "Hammer"
0 401 0 | sku = 738594937
0 401 0 |
2 400 0 + [[products]] # empty table within the array
0 401 0 |
2 400 0 + [[products]]
0 401 0 | name = "Nail"
0 401 0 | sku = 284758393
0 401 0 |
0 401 0 | points = [ { x = 1, y = 2, z = 3 },
0 401 0 | { x = 7, y = 8, z = 9 },
0 401 0 | { x = 2, y = 4, z = 8 } ]
0 401 0 |
0 401 0 | invalid # invalid, missing value
0 401 0 | key = identifier # also invalid, identifier must be one of true, false, inf, nan
0 401 0 |

View File

@ -0,0 +1,189 @@
{1}# This is a full-line comment
{6}key{0} {8}={0} {10}"value"{0} {1}# This is a comment at the end of a line
{6}another{0} {8}={0} {10}"# This is not a comment"{0}
{6}key{0} {8}={0} {10}"value"{0}
{6}bare_key{0} {8}={0} {10}"value"{0}
{6}bare-key{0} {8}={0} {10}"value"{0}
{6}1234{0} {8}={0} {10}"value"{0}
{6}"127.0.0.1"{0} {8}={0} {10}"value"{0}
{6}"character encoding"{0} {8}={0} {10}"value"{0}
{6}"ʎǝʞ"{0} {8}={0} {10}"value"{0}
{6}'key2'{0} {8}={0} {10}"value"{0}
{6}'quoted "value"'{0} {8}={0} {10}"value"{0}
{6}fruit{8}.{6}name{0} {8}={0} {10}"banana"{0} {1}# this is best practice
{6}fruit{8}.{6} color{0} {8}={0} {10}"yellow"{0} {1}# same as fruit.color
{6}fruit {8}.{6} flavor{0} {8}={0} {10}"banana"{0} {1}# same as fruit.flavor
{0}
{6}name{0} {8}={0} {10}"Orange"{0}
{6}physical{8}.{6}color{0} {8}={0} {10}"orange"{0}
{6}physical{8}.{6}shape{0} {8}={0} {10}"round"{0}
{6}site{8}.{6}"google.com"{0} {8}={0} {3}true{0}
{6}str{0} {8}={0} {10}"I'm a string. {13}\"{10}You can quote me{13}\"{10}. Name{13}\t{10}Jos{13}\u00E9\n{10}Location{13}\t{10}SF."{0}
{6}str1{0} {8}={0} {12}"""
Roses are red
Violets are blue"""{0}
{1}# The following strings are byte-for-byte equivalent:
{6}str1{0} {8}={0} {10}"The quick brown fox jumps over the lazy dog."{0}
{6}str2{0} {8}={0} {12}"""
The quick brown \
fox jumps over \
the lazy dog."""{0}
{6}str3{0} {8}={0} {12}"""\
The quick brown \
fox jumps over \
the lazy dog.\
"""{0}
{6}str4{0} {8}={0} {12}"""Here are two quotation marks: "". Simple enough."""{0}
{1}# str5 = """Here are three quotation marks: """.""" # INVALID
{6}str5{0} {8}={0} {12}"""Here are three quotation marks: ""{13}\"{12}."""{0}
{6}str6{0} {8}={0} {12}"""Here are fifteen quotation marks: ""{13}\"{12}""{13}\"{12}""{13}\"{12}""{13}\"{12}""{13}\"{12}."""{0}
{1}# "This," she said, "is just a pointless statement."
{6}str7{0} {8}={0} {12}""""This," she said, "is just a pointless statement.""""{0}
{1}# What you see is what you get.
{6}winpath{0} {8}={0} {9}'C:\Users\nodejs\templates'{0}
{6}winpath2{0} {8}={0} {9}'\\ServerX\admin$\system32\'{0}
{6}quoted{0} {8}={0} {9}'Tom "Dubs" Preston-Werner'{0}
{6}regex{0} {8}={0} {9}'<\i\c*\s*>'{0}
{6}regex2{0} {8}={0} {11}'''I [dw]on't need \d{2} apples'''{0}
{6}lines{0} {8}={0} {11}'''
The first newline is
trimmed in raw strings.
All other whitespace
is preserved.
'''{0}
{6}quot15{0} {8}={0} {11}'''Here are fifteen quotation marks: """""""""""""""'''{0}
{1}# 'That,' she said, 'is still pointless.'
{6}str{0} {8}={0} {11}''''That,' she said, 'is still pointless.''''{0}
{6}int1{0} {8}={0} {8}+{4}99{0}
{6}int2{0} {8}={0} {4}42{0}
{6}int3{0} {8}={0} {4}0{0}
{6}int4{0} {8}={0} {8}-{4}17{0}
{6}int5{0} {8}={0} {4}1_000{0}
{6}int6{0} {8}={0} {4}5_349_221{0}
{6}int7{0} {8}={0} {4}53_49_221{0} {1}# Indian number system grouping
{6}int8{0} {8}={0} {4}1_2_3_4_5{0} {1}# VALID but discouraged
{0}
{1}# hexadecimal with prefix `0x`
{6}hex1{0} {8}={0} {4}0xDEADBEEF{0}
{6}hex2{0} {8}={0} {4}0xdeadbeef{0}
{6}hex3{0} {8}={0} {4}0xdead_beef{0}
{1}# octal with prefix `0o`
{6}oct1{0} {8}={0} {4}0o01234567{0}
{6}oct2{0} {8}={0} {4}0o755{0} {1}# useful for Unix file permissions
{0}
{1}# binary with prefix `0b`
{6}bin1{0} {8}={0} {4}0b11010110{0}
{1}# fractional
{6}flt1{0} {8}={0} {8}+{4}1.0{0}
{6}flt2{0} {8}={0} {4}3.1415{0}
{6}flt3{0} {8}={0} {8}-{4}0.01{0}
{1}# exponent
{6}flt4{0} {8}={0} {4}5e+22{0}
{6}flt5{0} {8}={0} {4}1e06{0}
{6}flt6{0} {8}={0} {8}-{4}2E-2{0}
{1}# both
{6}flt7{0} {8}={0} {4}6.626e-34{0}
{6}flt8{0} {8}={0} {4}224_617.445_991_228{0}
{1}# infinity
{6}sf1{0} {8}={0} {3}inf{0} {1}# positive infinity
{6}sf2{0} {8}={0} {8}+{3}inf{0} {1}# positive infinity
{6}sf3{0} {8}={0} {8}-{3}inf{0} {1}# negative infinity
{0}
{1}# not a number
{6}sf4{0} {8}={0} {3}nan{0} {1}# actual sNaN/qNaN encoding is implementation-specific
{6}sf5{0} {8}={0} {8}+{3}nan{0} {1}# same as `nan`
{6}sf6{0} {8}={0} {8}-{3}nan{0} {1}# valid, actual encoding is implementation-specific
{0}
{6}bool1{0} {8}={0} {3}true{0}
{6}bool2{0} {8}={0} {3}false{0}
{6}odt1{0} {8}={0} {14}1979-05-27T07:32:00Z{0}
{6}odt2{0} {8}={0} {14}1979-05-27T00:32:00-07:00{0}
{6}odt3{0} {8}={0} {14}1979-05-27T00:32:00.999999-07:00{0}
{6}odt4{0} {8}={0} {14}1979-05-27 07:32:00Z{0}
{6}ldt1{0} {8}={0} {14}1979-05-27T07:32:00{0}
{6}ldt2{0} {8}={0} {14}1979-05-27T00:32:00.999999{0}
{6}ld1{0} {8}={0} {14}1979-05-27{0}
{6}lt1{0} {8}={0} {14}07:32:00{0}
{6}lt2{0} {8}={0} {14}00:32:00.999999{0}
{6}integers{0} {8}={0} {8}[{0} {4}1{8},{0} {4}2{8},{0} {4}3{0} {8}]{0}
{6}colors{0} {8}={0} {8}[{0} {10}"red"{8},{0} {10}"yellow"{8},{0} {10}"green"{0} {8}]{0}
{6}nested_arrays_of_ints{0} {8}={0} {8}[{0} {8}[{0} {4}1{8},{0} {4}2{0} {8}],{0} {8}[{4}3{8},{0} {4}4{8},{0} {4}5{8}]{0} {8}]{0}
{6}nested_mixed_array{0} {8}={0} {8}[{0} {8}[{0} {4}1{8},{0} {4}2{0} {8}],{0} {8}[{10}"a"{8},{0} {10}"b"{8},{0} {10}"c"{8}]{0} {8}]{0}
{6}string_array{0} {8}={0} {8}[{0} {10}"all"{8},{0} {9}'strings'{8},{0} {12}"""are the same"""{8},{0} {11}'''type'''{0} {8}]{0}
{1}# Mixed-type arrays are allowed
{6}numbers{0} {8}={0} {8}[{0} {4}0.1{8},{0} {4}0.2{8},{0} {4}0.5{8},{0} {4}1{8},{0} {4}2{8},{0} {4}5{0} {8}]{0}
{6}contributors{0} {8}={0} {8}[{0}
{10}"Foo Bar <foo@example.com>"{8},{0}
{8}{{0} {6}name{0} {8}={0} {10}"Baz Qux"{8},{0} {6}email{0} {8}={0} {10}"bazqux@example.com"{8},{0} {6}url{0} {8}={0} {10}"https://example.com/bazqux"{0} {8}}{0}
{8}]{0}
{6}integers2{0} {8}={0} {8}[{0}
{4}1{8},{0} {4}2{8},{0} {4}3{0}
{8}]{0}
{6}integers3{0} {8}={0} {8}[{0}
{4}1{8},{0}
{4}2{8},{0} {1}# this is ok
{8}]{0}
{5}[table-1]
{6}key1{0} {8}={0} {10}"some string"{0}
{6}key2{0} {8}={0} {4}123{0}
{5}[table-2]
{6}key1{0} {8}={0} {10}"another string"{0}
{6}key2{0} {8}={0} {4}456{0}
{5}[dog."tater.man"]
{6}type{8}.{6}name{0} {8}={0} {10}"pug"{0}
{5}[a.b.c]{0} {1}# this is best practice
{5}[ d.e.f ]{0} {1}# same as [d.e.f]
{5}[ g . h . i ]{0} {1}# same as [g.h.i]
{5}[ j . "ʞ" . 'l' ]{0} {1}# same as [j."ʞ".'l']
{0}
{5}[product]
{6}type{0} {8}={0} {8}{{0} {6}name{0} {8}={0} {10}"Nail"{0} {8}}{0}
{5}[[products]]
{6}name{0} {8}={0} {10}"Hammer"{0}
{6}sku{0} {8}={0} {4}738594937{0}
{5}[[products]]{0} {1}# empty table within the array
{0}
{5}[[products]]
{6}name{0} {8}={0} {10}"Nail"{0}
{6}sku{0} {8}={0} {4}284758393{0}
{6}points{0} {8}={0} {8}[{0} {8}{{0} {6}x{0} {8}={0} {4}1{8},{0} {6}y{0} {8}={0} {4}2{8},{0} {6}z{0} {8}={0} {4}3{0} {8}},{0}
{8}{{0} {6}x{0} {8}={0} {4}7{8},{0} {6}y{0} {8}={0} {4}8{8},{0} {6}z{0} {8}={0} {4}9{0} {8}},{0}
{8}{{0} {6}x{0} {8}={0} {4}2{8},{0} {6}y{0} {8}={0} {4}4{8},{0} {6}z{0} {8}={0} {4}8{0} {8}}{0} {8}]{0}
{7}invalid {1}# invalid, missing value
{6}key{0} {8}={0} {2}identifier{0} {1}# also invalid, identifier must be one of true, false, inf, nan

View File

@ -0,0 +1,3 @@
lexer.*.toml=toml
fold=1
keywords.*.toml=false inf nan true