From 7ae759fe5a837f1dec1883b6df02b7248d476e92 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 1 Mar 2005 09:47:48 +0000 Subject: Patch from Jan Martin Pettersen to ensure lexers only see the bits in each style byte they are interested in and not of any other indicators added by the container. --- src/DocumentAccessor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/DocumentAccessor.h b/src/DocumentAccessor.h index dc591d13e..5a9e40d42 100644 --- a/src/DocumentAccessor.h +++ b/src/DocumentAccessor.h @@ -27,6 +27,7 @@ protected: char chWhile; unsigned int startSeg; int startPosStyling; + int mask; bool InternalIsLeadByte(char ch); void Fill(int position); @@ -35,7 +36,8 @@ public: DocumentAccessor(Document *pdoc_, PropSet &props_, WindowID id_=0) : Accessor(), pdoc(pdoc_), props(props_), id(id_), lenDoc(-1), validLen(0), chFlags(0), chWhile(0), - startSeg(0), startPosStyling(0) { + startSeg(0), startPosStyling(0), + mask(31) { // Initialize the mask to the same as the default. } ~DocumentAccessor(); bool Match(int pos, const char *s); -- cgit v1.2.3