[ nedit-Bugs-1910431 ] Parsing "define" keyword
SourceForge.net
noreply at sourceforge.net
Sun Mar 9 13:35:01 CET 2008
Bugs item #1910431, was opened at 2008-03-09 13:35
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=1910431&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: Program
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bert Wesarg (lebert)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parsing "define" keyword
Initial Comment:
currently the function source/macro.c:readCheckMacroString() looks for the "define" keyword and the next character for space or tab, if found it skips "define" and than any of " \n\t". That means the following code has a syntax error (replace _ with space):
---cut---
define
test {
}
---cut---
but this not:
---cut---
define_
test {
}
---cut---
This should be made consistence, either remove the \n from the strspn() call or check also for the \n, I propose the former.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1910431&group_id=11005
More information about the Develop
mailing list