diff --git a/lsp-mode.el b/lsp-mode.el index c1823b2bf9..724236dfe4 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -5114,7 +5114,7 @@ Applies on type formatting." ("file" (xref-push-marker-stack) (find-file (lsp--uri-to-path url)) - (-when-let ((_ line column) (s-match (rx "#" (group (1+ num)) (or "," "#") (group (1+ num))) url)) + (-when-let ((_ line column) (s-match (rx "#" (optional "L") (group (1+ num)) (or "," "#") (group (1+ num))) url)) (goto-char (lsp--position-to-point (lsp-make-position :character (1- (string-to-number column)) :line (1- (string-to-number line)))))))