mmikeww / AHK-v2-script-converter

AHK v1 -> v2 script converter
https://autohotkey.com/boards/viewtopic.php?f=6&t=25100
The Unlicense
580 stars 44 forks source link

"" -> `" does not work in functions #299

Closed Banaanae closed 1 week ago

Banaanae commented 1 month ago

V1:

F1:: MsgBox % """" ; "
F2:: MsgBox % "abc""123" ; abc"123
F3:: MsgBox % "abc""123" MyFunc("", "123""abc") "" ; abc"123123"abc

MyFunc(a, b) {
  return a b
}

V2 (Converted):

F1::MsgBox("""") ; "
F2::MsgBox("abc""123") ; abc"123
F3::MsgBox("abc""123" MyFunc("", "123""abc") "") ; abc"123123"abc

MyFunc(a, b) {
  return a b
}

V2 (Expected):

F1::MsgBox("`"") ; "
F2::MsgBox("abc`"123") ; abc"123
F3::MsgBox("abc`"123" MyFunc("", "123`"abc") "") ; abc"123123"abc

MyFunc(a, b) {
  return a b
}
Banaanae commented 1 month ago

Ignore that all tests begin with F1::, issue is in MsgBox