Re: vbscript: Added lexer support for '_'
On Fri, Oct 14, 2011 at 13:44, Jacek Caban <jacek(a)codeweavers.com> wrote:
--- dlls/vbscript/lex.c | 10 ++++++++++ dlls/vbscript/tests/lang.vbs | 7 +++++++ dlls/vbscript/tests/run.c | 2 ++ 3 files changed, 19 insertions(+), 0 deletions(-)
Hi, Jacek, I'm far away from my linux box and I'm just passing by to remember that there is a 24 continuation limit. Here is an invalid operation because it has 26 continuations: x = _ 3 _ + 3 _ + 3 _ + 3 _ + 3 - _ 3 + _ 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 And this is another test that must pass too (there is no new operand after the last _ ) : x = _ 3 _ + 3 _ + 3 _ + 3 _ As I said I can't test in wine but maybe you will find this information useful. Best wishes, Bruno -- universe* god::bigbang (void); //and then it all began...
Hi Bruno, On 10/14/11 20:07, Bruno Jesus wrote:
On Fri, Oct 14, 2011 at 13:44, Jacek Caban<jacek(a)codeweavers.com> wrote:
--- dlls/vbscript/lex.c | 10 ++++++++++ dlls/vbscript/tests/lang.vbs | 7 +++++++ dlls/vbscript/tests/run.c | 2 ++ 3 files changed, 19 insertions(+), 0 deletions(-)
Hi, Jacek, I'm far away from my linux box and I'm just passing by to remember that there is a 24 continuation limit.
Here is an invalid operation because it has 26 continuations: x = _ 3 _ + 3 _ + 3 _ + 3 _ + 3 - _ 3 + _ 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3 _ + 3
I've tested it and that doesn't seem to be true.
And this is another test that must pass too (there is no new operand after the last _ ) : x = _ 3 _ + 3 _ + 3 _ + 3 _
This will work only if the next line is empty (exactly like my implementation does). Jacek
Hi, Jacek. On Mon, Oct 17, 2011 at 10:30, Jacek Caban <jacek(a)codeweavers.com> wrote:
Hi Bruno,
On 10/14/11 20:07, Bruno Jesus wrote: ... I've tested it and that doesn't seem to be true.
You're right, in a vbs file the limit does not exist, it looks like to be a Visual Basic 6 editor limit. Sorry for the noise.
And this is another test that must pass too (there is no new operand after the last _ ) : x = _ 3 _ + 3 _ + 3 _ + 3 _
This will work only if the next line is empty (exactly like my implementation does).
Great =)
Jacek
Best wishes, Bruno
participants (2)
-
Bruno Jesus -
Jacek Caban