diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2016-03-06 19:48:36 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2016-03-07 03:58:35 -0300 |
commit | c6ec148f2dfc837592d41720e5dc42bbe4e4eb78 (patch) | |
tree | 1ff44ec69ddc0b44d0a0ca7e6012ff0fdb8ffb47 /test/functional/legacy/036_regexp_character_classes_spec.lua | |
parent | 35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a (diff) | |
download | rneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.tar.gz rneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.tar.bz2 rneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.zip |
Rewrite hexadecimal escape sequences as decimal in lua strings
The hexadecimal notation is a Luajit extension which is not compatible with Lua
5.1. While Lua 5.2 does support hexadecimal sequences, it is better to target
Lua 5.1 for maximum compatibility with Luajit(which has fully compatible with
5.1 API/ABI).
Diffstat (limited to 'test/functional/legacy/036_regexp_character_classes_spec.lua')
-rw-r--r-- | test/functional/legacy/036_regexp_character_classes_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/legacy/036_regexp_character_classes_spec.lua b/test/functional/legacy/036_regexp_character_classes_spec.lua index 034a0d14ef..de080f4b43 100644 --- a/test/functional/legacy/036_regexp_character_classes_spec.lua +++ b/test/functional/legacy/036_regexp_character_classes_spec.lua @@ -30,7 +30,7 @@ local function diff(text, nodedent) end describe('character classes in regexp', function() - local ctrl1 = '\t\x0c\r' + local ctrl1 = '\t\012\r' local punct1 = " !\"#$%&'()#+'-./" local digits = '0123456789' local punct2 = ':;<=>?@' @@ -38,8 +38,8 @@ describe('character classes in regexp', function() local punct3 = '[\\]^_`' local lower = 'abcdefghiwxyz' local punct4 = '{|}~' - local ctrl2 = '\x7f\x80\x82\x90\x9b' - local iso_text = '\xa6\xb1\xbc\xc7\xd3\xe9' -- "¦±¼ÇÓé" in utf-8 + local ctrl2 = '\127\128\130\144\155' + local iso_text = '\166\177\188\199\211\233' -- "¦±¼ÇÓé" in utf-8 setup(function() -- The original test32.in file was not in utf-8 encoding and did also -- contain some control characters. We use lua escape sequences to write |