Skip to content

Commit

Permalink
refactor(quarto.lua): rename parse_code_chunk_params to parse_comment…
Browse files Browse the repository at this point in the history
…_params for clarity
  • Loading branch information
PMassicotte committed Mar 3, 2025
1 parent eea1c74 commit a550666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/r/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a550666

Please sign in to comment.