diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-30 13:46:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-30 13:46:54 -0700 |
| commit | 624fcdcc7e8502cd8f0dc4c51669e5d1de7811b9 (patch) | |
| tree | a3391aac7d1b6e286464aecd24b0df6fddf3c63a /nomsu_tree.lua | |
| parent | 0afcb416bcdb768c029e724ba08a900e7e95ee52 (diff) | |
Moved as_lua_id() onto 'string'
Diffstat (limited to 'nomsu_tree.lua')
| -rw-r--r-- | nomsu_tree.lua | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/nomsu_tree.lua b/nomsu_tree.lua index 9a492f3..dee5cc2 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -107,17 +107,7 @@ Tree("DictEntry", 'multi') Tree("IndexChain", 'multi') Tree("Number", 'single') Tree("Comment", 'single') -Tree("Var", 'single', { - as_lua_id = function(self) - return "_" .. (self.value:gsub("%W", function(c) - if c == "_" then - return "__" - else - return ("_%x"):format(c:byte()) - end - end)) - end -}) +Tree("Var", 'single') Tree("Action", 'multi', { get_stub = function(self, include_names) if include_names == nil then |
