Bugs item #1549616, was opened at 2006-08-30 15:01
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=1549616&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improper handling of single-char keywords w/o spaces (+Fix)

Initial Comment:
If I have the keywords "C T A G" and desire to have no
spaces, then StyleContext::Match does not work properly.

This is the new StyleContext::Match that fixes the
problem (begins at line 154 of StyleContext.h):
bool Match(const char *s) {
                if (ch != *s)
                        return false;
                s++;
                if(!*s)
                        return true;
                if (chNext != *s)
                        return false;
                s++;
                for (int n=2; *s; n++) {
                        if (*s != styler.SafeGetCharAt(currentPos+n))
                                return false;
                        s++;
                }
                return true;
        }

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

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

Reply via email to