Skip to content

Commit

Permalink
Support whitespace in default value for change signature refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Nov 28, 2023
1 parent 44403b2 commit 1fefda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/jdtls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ local function change_signature(bufnr, command, code_action_params)
type = matches[3],
})
else
matches = { line:match("%- (%w+) ([^ ]+) ?(%w*)") }
matches = { line:match("%- (%w+) ([^ ]+) ?(.*)") }
if next(matches) then
table.insert(parameters, {
type = matches[1],
Expand Down

0 comments on commit 1fefda6

Please sign in to comment.