Modify

#4105 closed Bug (Fixed)

bug with ContinuationLine after directive

Reported by: mLipok Owned by: Jpm
Milestone: 3.3.19.0 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 (3)

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

comment:3 by Jpm, on Jun 27, 2026 at 8:42:16 AM

Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed by revision [13443] in version: 3.3.19.0

Fixed #4105: Directive lines cannot be spanned.

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


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