mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 11:49:45 +00:00
Avoid putting properties past the end of the buffer.
This commit is contained in:
parent
14d161080c
commit
73f934e886
@ -56,7 +56,10 @@
|
||||
(not (eq ?$ (char-before (line-end-position 0)))))
|
||||
(put-text-property match-pos (1+ match-pos) 'syntax-table '(11))
|
||||
(let ((line-end (line-end-position)))
|
||||
(put-text-property line-end (1+ line-end) 'syntax-table '(12)))))))))
|
||||
;; Avoid putting properties past the end of the buffer.
|
||||
;; Otherwise we get an `args-out-of-range' error.
|
||||
(unless (= line-end (1+ (buffer-size)))
|
||||
(put-text-property line-end (1+ line-end) 'syntax-table '(12))))))))))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode ninja-mode prog-mode "ninja"
|
||||
|
Loading…
Reference in New Issue
Block a user