syntax_spec.lua 473 B

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