Modify

Opened 3 years ago

Last modified 11 months ago

#3667 assigned Bug

Continuation line with no code on it passes Au3Check but at runtime "Error parsing function call"

Reported by: c.haslam Owned by: Jpm
Milestone: Component: AutoIt
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description

Try this script:

{{{
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7

foo('cat', _
    'white', _
 _ ;    'black', _
    'short')

Func foo($ani,$colour,$fur)
    MsgBox(0,'',$colour&' '&$ani&' has '&$fur&' fur')
EndFunc
}}}

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Jos

Even simpler example. This is ok:

Global Const _
		$T1=1, _
		$T2=2, _
		$T3=3

This is not:

Global Const _
		$T1=1, _
		 _
		$T3=3

Giving this error:

"...test.au3" (1) : ==> No variable given for "Dim", "Local", "Global", "Struct" or "Const" statement.:
Global Const $T1=1, _
Global Const $T1=1, ^ ERROR

So the question is whether just a continuation character on a line is valid syntax?
Jos

Last edited 3 years ago by Jos (previous) (diff)

comment:2 Changed 3 years ago by Jos

  • Owner set to Jon
  • Status changed from new to assigned

comment:6 Changed 3 years ago by Jos

@c.haslam, please stop adding stuff to the report. The basic question is clear and that is the only thing that needs to be answered in this report.

Don't know who added the AutoitUpdate image and issue, but that has been removed from this topic as there is no relation what so ever. Simply create a new issue in case you find one.

Jos

comment:7 Changed 11 months ago by Jpm

  • Owner changed from Jon to Jpm

Fix sent to Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.