Is your feature request related to a problem? Please describe.
Currently all events, functions, etc require a trigger: section to execute the code.
Even if the trigger: section is the only member, it's still required.
Describe the solution you'd like
Make trigger: implicit if there are no other members.
Example:
on load:
trigger:
print "hello"
Would become:
Describe alternatives you've considered
I've thought about making a preprocessor to automatically generate trigger: sections when needed.
Is your feature request related to a problem? Please describe.
Currently all events, functions, etc require a
trigger:section to execute the code.Even if the
trigger:section is the only member, it's still required.Describe the solution you'd like
Make
trigger:implicit if there are no other members.Example:
Would become:
Describe alternatives you've considered
I've thought about making a preprocessor to automatically generate
trigger:sections when needed.