mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Add "function return" and "scoped function return" injections, allow children for return lines
This commit is contained in:
parent
b60f53df01
commit
933e8fb0ee
7 changed files with 131 additions and 72 deletions
|
|
@ -70,6 +70,12 @@ common = {
|
|||
-- decorators
|
||||
["\\$"] = "$"
|
||||
},
|
||||
-- list of possible injections and their associated name in vm.state.inject
|
||||
injections = {
|
||||
["function start"] = "function_start", ["function end"] = "function_end", ["function return"] = "function_return",
|
||||
["scoped function start"] = "scoped_function_start", ["scoped function end"] = "scoped_function_end", ["scoped function return"] = "scoped_function_return",
|
||||
["checkpoint start"] = "checkpoint_start", ["checkpoint end"] = "checkpoint_end"
|
||||
},
|
||||
--- escape a string to be used as an exact match pattern
|
||||
escape = function(str)
|
||||
if not escapeCache[str] then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue