Skip to content

Commit

Permalink
lua: kKeep type names to avoid incorrect require casing
Browse files Browse the repository at this point in the history
Having a struct UUID, the file generated was Uuid.lua,
but generated code passing UUID all uppercase to require,
on case sensitive filesystems this doesn't work
  • Loading branch information
serprex committed Mar 14, 2024
1 parent 67eb95d commit ea06e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bfbs_gen_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ std::set<std::string> LuaKeywords() {
}

Namer::Config LuaDefaultConfig() {
return { /*types=*/Case::kUpperCamel,
return { /*types=*/Case::kKeep,
/*constants=*/Case::kUnknown,
/*methods=*/Case::kUpperCamel,
/*functions=*/Case::kUpperCamel,
Expand Down

0 comments on commit ea06e3b

Please sign in to comment.