mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
; Fix typos in ruby-ts-mode.el
This commit is contained in:
parent
9599b05431
commit
3f7ea621b9
1 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
;; This file defines ruby-ts-mode which is a major mode for editting
|
;; This file defines ruby-ts-mode which is a major mode for editing
|
||||||
;; Ruby files that uses Tree Sitter to parse the language. More
|
;; Ruby files that uses Tree Sitter to parse the language. More
|
||||||
;; information about Tree Sitter can be found in the ELisp Info pages
|
;; information about Tree Sitter can be found in the ELisp Info pages
|
||||||
;; as well as this website: https://tree-sitter.github.io/tree-sitter/
|
;; as well as this website: https://tree-sitter.github.io/tree-sitter/
|
||||||
|
|
@ -150,7 +150,7 @@ These are currently unused")
|
||||||
"parenthesized_statements"
|
"parenthesized_statements"
|
||||||
"interpolation")
|
"interpolation")
|
||||||
string-end)
|
string-end)
|
||||||
"Regular expression of the nodes that can constain statements.")
|
"Regular expression of the nodes that can contain statements.")
|
||||||
|
|
||||||
(defun ruby-ts--lineno (node)
|
(defun ruby-ts--lineno (node)
|
||||||
"Return line number of NODE's start."
|
"Return line number of NODE's start."
|
||||||
|
|
@ -178,7 +178,7 @@ These are currently unused")
|
||||||
Applies `font-lock-comment-delimiter-face' and
|
Applies `font-lock-comment-delimiter-face' and
|
||||||
`font-lock-comment-face' See `treesit-fontify-with-override' for
|
`font-lock-comment-face' See `treesit-fontify-with-override' for
|
||||||
values of OVERRIDE"
|
values of OVERRIDE"
|
||||||
;; Emperically it appears as if (treesit-node-start node) will be
|
;; Empirically it appears as if (treesit-node-start node) will be
|
||||||
;; where the # character is at and (treesit-node-end node) will be
|
;; where the # character is at and (treesit-node-end node) will be
|
||||||
;; the end of the line
|
;; the end of the line
|
||||||
(let* ((node-start (treesit-node-start node))
|
(let* ((node-start (treesit-node-start node))
|
||||||
|
|
@ -717,7 +717,7 @@ i.e. expr of def foo(args) = expr is returned."
|
||||||
((n-p-gp ,ruby-ts--method-regex "body_statement" ,ruby-ts--class-or-module-regex)
|
((n-p-gp ,ruby-ts--method-regex "body_statement" ,ruby-ts--class-or-module-regex)
|
||||||
(ruby-ts--bol ruby-ts--grand-parent-node) ruby-indent-level)
|
(ruby-ts--bol ruby-ts--grand-parent-node) ruby-indent-level)
|
||||||
|
|
||||||
;; Match the end of a class / modlue
|
;; Match the end of a class / module
|
||||||
((match "end" ,ruby-ts--class-or-module-regex) parent 0)
|
((match "end" ,ruby-ts--class-or-module-regex) parent 0)
|
||||||
|
|
||||||
;; A "do_block" has a "body_statement" child which has the
|
;; A "do_block" has a "body_statement" child which has the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue