There was an error while loading. Please reload this page.
1 parent 2e69bfe commit 4698656Copy full SHA for 4698656
1 file changed
lua/mcphub/extensions/codecompanion/variables.lua
@@ -99,7 +99,8 @@ function M.update_variable_syntax(resources)
99
vim.api.nvim_buf_call(bufnr, function()
100
for _, resource in ipairs(resources) do
101
local uri = resource.uri
102
- vim.cmd.syntax('match CodeCompanionChatVariable "#' .. uri .. '\\(\\ze\\s\\|\\ze$\\)"')
+ vim.cmd.syntax('match CodeCompanionChatVariable "#{' .. uri .. '}"')
103
+ vim.cmd.syntax('match CodeCompanionChatVariable "#{' .. uri .. '}{[^}]*}"')
104
end
105
end)
106
0 commit comments