syntax_spec.lua 460 B

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