diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-20 16:18:02 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-22 22:02:42 +0200 |
| commit | d05728e155ced9a815bb3f6fc9e8004093beb3d3 (patch) | |
| tree | d97aa90a327d54e1099694dcf01b847b033f3b27 /lua/nvim-treesitter/query.lua | |
| parent | 8bb53c93d050cbc8c52db6972300de650c34b3a7 (diff) | |
feat: syntax highlighting
Diffstat (limited to 'lua/nvim-treesitter/query.lua')
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index e9f671f9..277c2969 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -62,7 +62,7 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row) local preds = query.info.patterns[pattern] if preds then for _, pred in pairs(preds) do - if pred[1] == "set!" and pred[2] ~= nil then + if pred[1] == "set!" and type(pred[2]) == "string" then insert_to_path(prepared_match, split(pred[2]), pred[3]) end end |
