Bug - Fixed Combat Macro syntax checker take 2

this line:
if match "It whips out a hammer (you're not sure from where)"

produces the following error message from the checker. unmodified r8499:

Line 22: "if" - "match" requires double-quotes around parameters containing spaces.
Line 22: "if" - unexpected "(" in predicate.

which is incorrect, in fact, i used the macro that has this line, and it worked exactly as expected.

<3

In case you were curious...
Readable version of the full macro is located here
Compiled version of the full macro is located here
 
Last edited:

heeheehee

Developer
Staff member
This might work. (tested minimally, and you might need to remove .kolmafia/relay/macroHelper.js or whatever the equivalent is. I'm not entirely sure about that, though)
 

Attachments

  • macroFix.patch
    1 KB · Views: 50

Veracity

Developer
Staff member
This might work. (tested minimally, and you might need to remove .kolmafia/relay/macroHelper.js or whatever the equivalent is. I'm not entirely sure about that, though)
I looked at what you did and then tried it out. Seems like a clever solution. So, I submitted it in revision 10275.

Thanks!
 
Top