Debian Codegraph @

modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.gd

raw
1 func test():
2 var lua_dict = {
3 a = 1,
4 "b" = 2, # Using strings are allowed too.
5 "with spaces" = 3, # Especially useful when key has spaces...
6 "2" = 4, # ... or invalid identifiers.
7 }
8
9 print(lua_dict)