aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-01 09:47:48 +0000
committernyamatongwe <unknown>2005-03-01 09:47:48 +0000
commit685d4b0320ed00a9c95195260616bfbf211b3e96 (patch)
tree54fac1d024ef1e6c904411b9c958bfc93a45a603 /src
parentaa086593bb28aa2e7fbeb818ab34b7111e61eb29 (diff)
downloadscintilla-mirror-685d4b0320ed00a9c95195260616bfbf211b3e96.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/DocumentAccessor.h4
1 files changed, 3 insertions, 1 deletions
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);