We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b277560 commit 8c8c551Copy full SHA for 8c8c551
clang/tools/clang-format/clang-format.el
@@ -196,14 +196,15 @@ which can be passed directly to ‘clang-format’."
196
;; "@@ -80 +80 @@" or "@@ -80,2 +80,2 @@"
197
(goto-char (point-min))
198
(while (re-search-forward
199
- "^@@\s-[0-9,]+\s\\+\\([0-9]+\\)\\(,\\([0-9]+\\)\\)?\s@@$"
+ "^@@[[:blank:]]-[[:digit:],]+[[:blank:]]\\+\\([[:digit:]]+\\)\\(,\\([[:digit:]]+\\)\\)?[[:blank:]]@@$"
200
nil
201
t
202
1)
203
(let ((match1 (string-to-number (match-string 1)))
204
- (match3 (if (match-string 3)
205
- (string-to-number (match-string 3))
206
- nil)))
+ (match3 (let ((match3_or_nil (match-string 3)))
+ (if match3_or_nil
+ (string-to-number match3_or_nil)
207
+ nil))))
208
(push (format
209
"--lines=%d:%d"
210
match1
0 commit comments