diff options
author | Neil <nyamatongwe@gmail.com> | 2013-06-29 20:33:54 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-06-29 20:33:54 +1000 |
commit | 4f2107e926254fdda3d93e195c9e472068da0876 (patch) | |
tree | 73b2f785bf217682638bc66372cbbb7dd2c1355c | |
parent | 1a05a259558efd7dffb118ca9b12257a1346d2ea (diff) | |
download | scintilla-mirror-4f2107e926254fdda3d93e195c9e472068da0876.tar.gz |
Bug: [#1483]. Added a test for UTF-8 labels in Lua that would fail without fix.
-rw-r--r-- | test/examples/x.lua | 3 | ||||
-rw-r--r-- | test/examples/x.lua.styled | 3 | ||||
-rw-r--r-- | test/lexTests.py | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/test/examples/x.lua b/test/examples/x.lua index b7879619f..cfa3537b5 100644 --- a/test/examples/x.lua +++ b/test/examples/x.lua @@ -1,6 +1,7 @@ ---[[ Block +--[[ coding:UTF-8 comment ]] function first() +::開:: -- Comment func(SCI_ANNOTATIONSETTEXT, 'a', 0, "LINE1") end diff --git a/test/examples/x.lua.styled b/test/examples/x.lua.styled index d693279ff..0c8f76fa4 100644 --- a/test/examples/x.lua.styled +++ b/test/examples/x.lua.styled @@ -1,6 +1,7 @@ -{1}--[[ Block +{1}--[[ coding:UTF-8 comment ]]{0} {5}function{0} {11}first{10}(){0} +{20}::開::{0} {2}-- Comment {0} {11}func{10}({11}SCI_ANNOTATIONSETTEXT{10},{0} {7}'a'{10},{0} {4}0{10},{0} {6}"LINE1"{10}){0} {5}end{0} diff --git a/test/lexTests.py b/test/lexTests.py index 3c5ccc147..5c14bafc6 100644 --- a/test/lexTests.py +++ b/test/lexTests.py @@ -39,6 +39,7 @@ class TestLexers(unittest.TestCase): def LexExample(self, name, lexerName, keywords=None): if keywords is None: keywords = [] + self.ed.SetCodePage(65001) self.ed.LexerLanguage = lexerName bits = self.ed.StyleBitsNeeded mask = 2 << bits - 1 |