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).
This commit is contained in:
Thiago de Arruda
2016-03-06 19:48:36 -03:00
parent 35d8d10a6a
commit c6ec148f2d
6 changed files with 118 additions and 118 deletions

View File

@@ -191,7 +191,7 @@ describe('undo tree:', function()
end)
it('undo an expression-register', function()
local normal_commands = 'o1\x1ba2\x12=string(123)\n\x1b'
local normal_commands = 'o1\027a2\018=string(123)\n\027'
write_file('Xtest.source', normal_commands)
feed('oa<esc>')