Add test for ts syn skip cases

This commit is contained in:
Andy K. Massimino
2021-09-29 23:43:44 -04:00
parent e1e7b3afc4
commit fb5c4606ef
4 changed files with 59 additions and 1 deletions

View File

@@ -333,7 +333,7 @@ function M.attach(bufnr, lang)
local config = configs.get_module('matchup')
if opt_tbl_for_lang(config.additional_vim_regex_highlighting, lang)
and api.nvim_buf_set_option(bufnr, 'syntax') == '' then
and api.nvim_buf_get_option(bufnr, 'syntax') == '' then
api.nvim_buf_set_option(bufnr, 'syntax', 'ON')
end