From a550666a87b9c6eac60b778b6a9a2afa80454146 Mon Sep 17 00:00:00 2001 From: Philippe Massicotte Date: Mon, 3 Mar 2025 10:42:16 -0500 Subject: [PATCH] refactor(quarto.lua): rename parse_code_chunk_params to parse_comment_params for clarity --- lua/r/quarto.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/r/quarto.lua b/lua/r/quarto.lua index 5cc436e4..98cca601 100644 --- a/lua/r/quarto.lua +++ b/lua/r/quarto.lua @@ -89,7 +89,7 @@ local get_code_chunks = function(bufnr) -- Get the parameters specified in the code chunk with #| local comment_params = - M.parse_code_chunk_params(vim.treesitter.get_node_text(node, bufnr)) + M.parse_comment_params(vim.treesitter.get_node_text(node, bufnr)) local chunk = Chunk:new( vim.treesitter.get_node_text(node, bufnr), @@ -136,7 +136,7 @@ end --- Helper function to parse the parameters specified in the code chunk with #| ---@param code_content string The content of the code chunk. ---@return table -M.parse_code_chunk_params = function(code_content) +M.parse_comment_params = function(code_content) local params = {} for line in code_content:gmatch("[^\r\n]+") do