Skip to content

Commit

Permalink
fix: parse sections containing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
saecki committed Sep 13, 2024
1 parent b3b9ac6 commit 8f1a46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/crates/toml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ function M.parse_crates(buf)
local line_nr = i - 1

---@type string, string
local section_start, section_text, section_end = line:match("^%s*()%[([^%s]+)()%s*$")
local section_start, section_text, section_end = line:match("^%s*()%[(.-)()%s*$")
if section_text then
if dep_section then
-- close line span
Expand Down

0 comments on commit 8f1a46a

Please sign in to comment.