Commit 492c3251 authored by Rico Possienka's avatar Rico Possienka
Browse files

add lua template

parent fdcaa6a9
#! version:1 language:lua file_type:.lua #
#
# DEFAULT Template file for Lua
#
{
"config": {
"gap": "\n",
"indent": " ",
"useHeader" : true
},
"header": { "content" : "-- $name statemachine\n" },
"footer": { "content" : "" },
"states": {
"name": "",
"body": "",
"item": ""
},
"state": {
"name": "",
"body": ""
},
"transitions": {
"body": "function $name(s)\n$items\n return s\nend\n",
"item": " if s == \"$name\" then return \"$value\" end \n"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment