Bugs item #2038921, was opened at 2008-08-05 14:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=2038921&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: syntax error when macro-file is not terminated by newline

Initial Comment:
Hi,

I found a small bug of the macro-language interpreter.

The macro file with content like

$test = $empty_array
$test["test"] = "test"

gives syntax error when the file is not terminated by '\n'.

All is OK when other construction like

define test {
        return
}

stands at the file end (also not terminated by '\n').
 
All is OK in both cases if files are saved via File menu
since NEdit automatically terminates them by '\n'.
But the problem occurs when a macro-file is created via the write_file() macro.

The bug is observed for both NEdit-5.5 and NEdit-5.6.
But NEdit-5.5 detects parse error and NEdit-5.6 detects syntax error.

Alexey Kuznetsov

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=2038921&group_id=11005
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to