robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
577 B21 linesraw
1local t = require('test.testutil')
2local n = require('test.functional.testnvim')()
3
4local describe, it, before_each = t.describe, t.it, t.before_each
5local eq = t.eq
6local pcall_err = t.pcall_err
7local clear = n.clear
8local command = n.command
9
10describe(':syntax', function()
11  before_each(clear)
12
13  describe('keyword', function()
14    it('does not crash when group name contains unprintable characters', function()
15      eq(
16        'Vim(syntax):E669: Unprintable character in group name',
17        pcall_err(command, 'syntax keyword \024 foo bar')
18      )
19    end)
20  end)
21end)