mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 22:00:10 +00:00
21 lines
511 B
Lua
21 lines
511 B
Lua
local t = require('test.testutil')
|
|
local n = require('test.functional.testnvim')()
|
|
|
|
local eq = t.eq
|
|
local pcall_err = t.pcall_err
|
|
local clear = n.clear
|
|
local command = n.command
|
|
|
|
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',
|
|
pcall_err(command, 'syntax keyword \024 foo bar')
|
|
)
|
|
end)
|
|
end)
|
|
end)
|