﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3062	AuCheck didn't catch ' without &	anonymous		"The code is:


{{{
Local $udfKeys = 'ab-c'
MsgBox(0,'',@ScriptLineNumber&':StringSplit($udfKeys,'-',0)[1]', _
StringSplit($udfKeys,'-',0)[1])
}}}

AU3Check doesn't complain.

In case this looks to you like a stupid or contrived piece of code, it arose in the following context.

I have a function ConsDebug(), that dumps the values of variables (including arrays) to the Console. I made it particularly easy to use:

I write
{{{
ConsDebug(@ScriptLineNumber&':',
}}}
then use AutoComplete to help in typing variable names, and Copy/Paste for stuff like StringSplit($udfKeys,'-',0), add a )

I then back-arrow once. I then Shift_BackArrow back to the comma I typed.

I then Ctrl_C, move the cursor to after the ''':''', and Paste.

In this way I rapidly code a call to my dump function.

But this time, I didn't notice that ' occurs in the ''value'' arguments.

My code, before simplifying it for Trac, is:

{{{
#include ""cdebug.au3""
ConsDebug(@ScriptLineNumber&':StringSplit($udfKeys,'-',0)', _
StringSplit($udfKeys,'-',0))
}}}
"	Bug	closed		AutoIt	3.3.12.0	None	No Bug		
