2024-04-20 08:44:13 -07:00
|
|
|
local t = require('test.testutil')
|
|
|
|
local n = require('test.functional.testnvim')()
|
2017-04-09 13:38:05 -07:00
|
|
|
|
2024-04-08 02:03:20 -07:00
|
|
|
local eq = t.eq
|
2024-04-20 08:44:13 -07:00
|
|
|
local clear = n.clear
|
|
|
|
local exc_exec = n.exc_exec
|
2017-04-09 13:38:05 -07:00
|
|
|
|
|
|
|
describe(':syntax', function()
|
|
|
|
before_each(clear)
|
|
|
|
|
|
|
|
describe('keyword', function()
|
|
|
|
it('does not crash when group name contains unprintable characters', function()
|
|
|
|
eq(
|
|
|
|
'Vim(syntax):E669: Unprintable character in group name',
|
|
|
|
exc_exec('syntax keyword \024 foo bar')
|
2024-01-02 18:09:18 -07:00
|
|
|
)
|
2017-04-09 13:38:05 -07:00
|
|
|
end)
|
|
|
|
end)
|
|
|
|
end)
|