neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

syntax_spec.lua (473B)


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