robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
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 () 11before_each ( clear ) 12 13describe ( 'keyword' , function () 14it ( 'does not crash when group name contains unprintable characters' , function () 15eq ( 16'Vim(syntax):E669: Unprintable character in group name' , 17pcall_err ( command , 'syntax keyword \024 foo bar' ) 18) 19end ) 20end ) 21end )