Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 4afa7be

Browse files
committed
Remove duplication in function body
1 parent 2f626c6 commit 4afa7be

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

zig-mode.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,12 @@ This is written mainly to be used as `end-of-defun-function' for Zig."
427427
(point) end))
428428

429429
(defun zig-mode-syntactic-face-function (state)
430-
(if (nth 3 state)
431-
(save-excursion
432-
(goto-char (nth 8 state))
430+
(save-excursion
431+
(goto-char (nth 8 state))
432+
(if (nth 3 state)
433433
(if (looking-at "\\\\\\\\")
434434
'zig-multiline-string-face
435-
'font-lock-string-face))
436-
(save-excursion
437-
(goto-char (nth 8 state))
435+
'font-lock-string-face)
438436
(if (looking-at "//[/|!][^/]")
439437
'font-lock-doc-face
440438
'font-lock-comment-face))))

0 commit comments

Comments
 (0)