aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lexTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lexTests.py')
-rw-r--r--test/lexTests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lexTests.py b/test/lexTests.py
index 03d3d1cee..2dbb1b3ad 100644
--- a/test/lexTests.py
+++ b/test/lexTests.py
@@ -75,9 +75,7 @@ class TestLexers(unittest.TestCase):
self.ed.EmptyUndoBuffer()
self.ed.SetCodePage(65001)
self.ed.LexerLanguage = lexerName
- bits = self.ed.StyleBitsNeeded
- mask = 2 << bits - 1
- self.ed.StyleBits = bits
+ mask = 0xff
for i in range(len(keywords)):
self.ed.SetKeyWords(i, keywords[i])