mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
use prefix mach for tag address for fucntions, since they are truncated
This commit is contained in:
parent
02222d3410
commit
524d64ffd3
@ -60,7 +60,7 @@ parse_lines = Ct P {
|
|||||||
}
|
}
|
||||||
|
|
||||||
escape_tagaddress = (line_text) ->
|
escape_tagaddress = (line_text) ->
|
||||||
replacements = P([[\]]) / [[\\]] + P([[/]]) / [[\/]] + P("\t") / [[\t]] + P("\r") / [[\r]] + P("\n") / [[\n]]
|
replacements = S([[\/.$^]]) / [[\%0]]+ P("\t") / [[\t]] + P("\r") / [[\r]] + P("\n") / [[\n]]
|
||||||
Cs((replacements + 1)^0)\match line_text
|
Cs((replacements + 1)^0)\match line_text
|
||||||
|
|
||||||
for fname in *args.files
|
for fname in *args.files
|
||||||
@ -115,7 +115,7 @@ for fname in *args.files
|
|||||||
properties.tag
|
properties.tag
|
||||||
fname
|
fname
|
||||||
-- note we don't use $ here
|
-- note we don't use $ here
|
||||||
"/^#{escape_tagaddress line_text}$/;\""
|
"/^#{escape_tagaddress line_text}/;\""
|
||||||
"f"
|
"f"
|
||||||
table.concat fields, " "
|
table.concat fields, " "
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ for fname in *args.files
|
|||||||
properties.tag
|
properties.tag
|
||||||
fname
|
fname
|
||||||
-- note we don't use $ here
|
-- note we don't use $ here
|
||||||
"/^#{escape_tagaddress line_text}$/;\""
|
"/^#{escape_tagaddress line_text}/;\""
|
||||||
"f"
|
"f"
|
||||||
table.concat fields, " "
|
table.concat fields, " "
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user