Skip to content

Commit

Permalink
Escape trace name
Browse files Browse the repository at this point in the history
  • Loading branch information
Avril112113 committed Jun 24, 2024
1 parent 4e7ac84 commit f9bd3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/transform_swaddon_tracing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function TransformerDefs:_add_trace_info(node, name, start_line, start_column, l
)
)),
ASTNodes.expressionlist(node, ASTNodes.table(node, ASTNodes.fieldlist(node,
ASTNodes.field(node, ASTNodes.string(node, "name"), ASTNodes.string(node, name)),
ASTNodes.field(node, ASTNodes.string(node, "name"), ASTNodes.string(node, Utils.escape_escape_sequences(name))),
ASTNodes.field(node, ASTNodes.string(node, "line"), ASTNodes.numeral(node, tostring(start_line))),
ASTNodes.field(node, ASTNodes.string(node, "column"), ASTNodes.numeral(node, tostring(start_column))),
ASTNodes.field(node, ASTNodes.string(node, "file"), ASTNodes.string(node, local_file_path))
Expand Down

0 comments on commit f9bd3eb

Please sign in to comment.