lang: Update map type definition to include a prefix
It turns out that some planned additions to the parser make it so that the map type definition can be ambiguous. As a result, this patch updates the definition so that the map definition is not confused with an open curly bracket anywhere. Thanks to pestle and stbenjamin for their help understanding yacc!
This commit is contained in:
@@ -242,11 +242,11 @@ func TestLexParse0(t *testing.T) {
|
||||
values = append(values, test{
|
||||
name: "maps and lists",
|
||||
code: `
|
||||
$strmap {str: int} = {
|
||||
$strmap map{str: int} = {
|
||||
"key1" => 42,
|
||||
"key2" => -13,
|
||||
}
|
||||
$mapstrintlist {str: []int} = {
|
||||
$mapstrintlist map{str: []int} = {
|
||||
"key1" => [42, 44,],
|
||||
"key2" => [],
|
||||
"key3" => [-13,],
|
||||
|
||||
Reference in New Issue
Block a user