diff options
author | nyamatongwe <devnull@localhost> | 2005-03-01 09:47:48 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-03-01 09:47:48 +0000 |
commit | 7ae759fe5a837f1dec1883b6df02b7248d476e92 (patch) | |
tree | 54fac1d024ef1e6c904411b9c958bfc93a45a603 | |
parent | cbc79a0aa37c2cbb7d5da2ab20341ae16b008d70 (diff) | |
download | scintilla-mirror-7ae759fe5a837f1dec1883b6df02b7248d476e92.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.
-rw-r--r-- | src/DocumentAccessor.h | 4 |
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); |