Skip to content

Implicit trigger if no other members #12

@kiip1

Description

@kiip1

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:

on load:
    print "hello"

Describe alternatives you've considered
I've thought about making a preprocessor to automatically generate trigger: sections when needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions