summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md3
-rw-r--r--script/encoder/utf16.lua2
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index af0ea081..05969225 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,8 @@
# changelog
+## 2.5.3
+* `FIX` [#844](https://github.com/sumneko/lua-language-server/issues/844)
+
## 2.5.2
`2021-12-2`
* `FIX` [#815](https://github.com/sumneko/lua-language-server/issues/815)
diff --git a/script/encoder/utf16.lua b/script/encoder/utf16.lua
index 744da174..7b08e082 100644
--- a/script/encoder/utf16.lua
+++ b/script/encoder/utf16.lua
@@ -92,6 +92,8 @@ local function utf8next(s, n)
return n+3, utf8byte(s, n)
elseif strmatch(s, "^[\xED][\x80-\x9F][\x80-\xBF]", n) then
return n+3, utf8byte(s, n)
+ elseif strmatch(s, "^[\xEE-\xEF][\x80-\xBF][\x80-\xBF]", n) then
+ return n+3, utf8byte(s, n)
elseif strmatch(s, "^[\xF0][\x90-\xBF][\x80-\xBF][\x80-\xBF]", n) then
return n+4, utf8byte(s, n)
elseif strmatch(s, "^[\xF1-\xF3][\x80-\xBF][\x80-\xBF][\x80-\xBF]", n) then