Creates a new custom rule, and makes it the active configuration scope.
Rules contain the settings and property definitions for a single custom rule file. These settings include the target file extension, the command line format, and the build inputs and outputs.
name is the name for the rule, which must be unique for each rule specified. If a rule with the given name already exists, it is made active and returned.
If no name is given, the current rule scope is returned, and also made active.
Premake 5.0 or later.
Create a new rule named "luac". For a more complete example, see Custom Rules.