aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-30 13:46:40 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-30 13:46:54 -0700
commit624fcdcc7e8502cd8f0dc4c51669e5d1de7811b9 (patch)
treea3391aac7d1b6e286464aecd24b0df6fddf3c63a /nomsu_tree.moon
parent0afcb416bcdb768c029e724ba08a900e7e95ee52 (diff)
Moved as_lua_id() onto 'string'
Diffstat (limited to 'nomsu_tree.moon')
-rw-r--r--nomsu_tree.moon5
1 files changed, 1 insertions, 4 deletions
diff --git a/nomsu_tree.moon b/nomsu_tree.moon
index 5aa8f81..1e662d7 100644
--- a/nomsu_tree.moon
+++ b/nomsu_tree.moon
@@ -57,10 +57,7 @@ Tree "DictEntry", 'multi'
Tree "IndexChain", 'multi'
Tree "Number", 'single'
Tree "Comment", 'single'
-
-Tree "Var", 'single',
- as_lua_id: =>
- "_"..(@value\gsub("%W", (c)-> if c == "_" then "__" else ("_%x")\format(c\byte!)))
+Tree "Var", 'single'
Tree "Action", 'multi',
get_stub: (include_names=false)=>