Skip to content

Snippets format? #85

Description

@Leadwerks

I have a Lua snippet defined like this:

    "Entity:SetPosition": {
        "prefix": "Entity:SetPosition",
        "description": "Sets the position of an entity in 3-dimensional space, using local or global coordinates.",
        "body": [
            "SetPosition($x, $y, $z, $global)"
        ]
    },

If I start typing like this:

p:SetPo

It will show the function. When I select it, the colon is removed and I end up with this:

pSetPosition(x, y, z, global)

Instead of this:

p:SetPosition(x, y, z, global)

What is the correct way to define this? It works perfectly if the function uses a period instead of a semicolon.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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