Bugs item #1523787, was opened at 2006-07-17 13:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1523787&group_id=2439

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: Scintilla
Group: Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Nicola Civran (nyk)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2 (minor) bugs in VB lexer

Initial Comment:
I found two little bugs in LexVB.cxx.

1) A preprocessor directive placed below either a
comment, or another preprocessor directive, or a string
not closed, or a date not closed, is styled as a date
not closed; the example code below shows this behaviour:

#Const DEBUGLEVEL = 0
#If DEBUGLEVEL = 1
rem comment line
#ElseIf DEBUGLEVEL = 2
ncs := "I'm not closed
#ElseIf DEBUGLEVEL = 3
ncd := #bad date
#EndIf

The bug occurs because visibleChars is not updated
properly when sc.atLineEnd is true and a subsequent
sc.ForwardSetState(SCE_B_DEFAULT) turns it to false.

2) A string not closed containing a double quote
character (e.g., '"String ""not closed"" containing
quotes') is styled with SCE_B_STRINGEOL only from the
rightmost quote character, while a more correct
behaviour is to use it from the leftmost one.

In the attached file, I have enclosed my changes with
#ifndef STANDARD_SCINTILLA_CODE directives, to make
simpler to find them.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1523787&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to