Skip to content

Snippets format? #85

@Leadwerks

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.

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