diff options
| author | Stefan Kangas | 2023-11-06 08:51:59 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-11-06 08:52:22 +0100 |
| commit | bf81706988f6b1b9d6e8033c8227f0129e04ef03 (patch) | |
| tree | 6ec5e3269dc402e341004e5d1c655d7eecf801b8 | |
| parent | b52849594668799a40112e31d2086c4a6d966f94 (diff) | |
| download | emacs-bf81706988f6b1b9d6e8033c8227f0129e04ef03.tar.gz emacs-bf81706988f6b1b9d6e8033c8227f0129e04ef03.zip | |
Silence warning when requiring ruby-ts-mode
* lisp/progmodes/ruby-ts-mode.el: Silence warning when requiring
file without a treesitter grammar.
| -rw-r--r-- | lisp/progmodes/ruby-ts-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index fabe5859779..4f85e1c63ff 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; This file defines ruby-ts-mode which is a major mode for editing | 27 | ;; This file defines ruby-ts-mode which is a major mode for editing |
| 28 | ;; Ruby files that uses Tree Sitter to parse the language. More | 28 | ;; Ruby files that uses Tree Sitter to parse the language. More |
| 29 | ;; information about Tree Sitter can be found in the ELisp Info pages | 29 | ;; information about Tree Sitter can be found in the ELisp Info pages |
| 30 | ;; as well as this website: https://tree-sitter.github.io/tree-sitter/ | 30 | ;; as well as this website: https://tree-sitter.github.io/tree-sitter/ |
| 31 | 31 | ||
| @@ -1198,7 +1198,7 @@ leading double colon is not added." | |||
| 1198 | (syntax-ppss-flush-cache (cl-loop for r in ranges | 1198 | (syntax-ppss-flush-cache (cl-loop for r in ranges |
| 1199 | minimize (car r)))))) | 1199 | minimize (car r)))))) |
| 1200 | 1200 | ||
| 1201 | (if (treesit-ready-p 'ruby) | 1201 | (if (treesit-ready-p 'ruby t) |
| 1202 | ;; Copied from ruby-mode.el. | 1202 | ;; Copied from ruby-mode.el. |
| 1203 | (add-to-list 'auto-mode-alist | 1203 | (add-to-list 'auto-mode-alist |
| 1204 | (cons (concat "\\(?:\\.\\(?:" | 1204 | (cons (concat "\\(?:\\.\\(?:" |