Skip to content

Commit

Permalink
Merge pull request #2517 from musvaage/master
Browse files Browse the repository at this point in the history
ninja-mode
  • Loading branch information
jhasse authored Oct 31, 2024
2 parents 4f84719 + 37a97ea commit 089af00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/ninja-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
;; Is it the first non-white character on the line?
(eq match-pos (save-excursion (back-to-indentation) (point)))
(save-excursion
(goto-char (line-end-position 0))
(end-of-line 0) ; Go to the end of the previous line.
(or
;; If we're continuing the previous line, it's not a
;; comment.
Expand All @@ -74,7 +74,7 @@
(let ((line-end (line-end-position)))
;; Avoid putting properties past the end of the buffer.
;; Otherwise we get an `args-out-of-range' error.
(unless (= line-end (1+ (buffer-size)))
(unless (= line-end (point-max))
(put-text-property line-end (1+ line-end) 'syntax-table '(12)))))))))

(defun ninja-compute-indentation ()
Expand Down

0 comments on commit 089af00

Please sign in to comment.