Modify

#4105 new Bug

bug with ContinuationLine after directive

Reported by: mLipok Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

Repro script

_Example()
Func _Example()
        #TODO => test _
        ConsoleWrite("! " & @CRLF)
EndFunc   ;==>_Example

Error output

---------------------------
AutoIt Error
---------------------------
Line 2  (File "Z:\test.au3"):

Func _Example()ConsoleWrite("! " & @CRLF)

Error: Illegal text at the end of statement (one statement per line).
---------------------------
OK   
---------------------------

another example

_Example()
Func _Example()
        #Region - test _

        #EndRegion - test _
        ConsoleWrite("! " & @CRLF)
EndFunc   ;==>_Example

result:

---------------------------
AutoIt Error
---------------------------
Line 2  (File "Z:\test.au3"):

Func _Example()ConsoleWrite("! " & @CRLF)

Error: Illegal text at the end of statement (one statement per line).
---------------------------
OK   
---------------------------

I'm not sure if this is bug or not

Please consider to fix this.

Attachments (0)

Change History (2)

comment:1 by mLipok, on Jun 26, 2026 at 10:15:29 PM

Description: modified (diff)

comment:2 by mLipok, on Jun 26, 2026 at 10:42:48 PM

btw.
I do not see any note in HelpFile how AutoIt interprest such line
Disscussion taken here:
https://www.autoitscript.com/forum/topic/153782-help-filedocumentation-issues-discussion-only/page/46/#findComment-1553488

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.