aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2023-01-17 06:30:08 +0100
committerStefan Kangas2023-01-17 06:30:08 +0100
commitbb383a54910c3094e5d228e0af62bf70e36203ca (patch)
tree683a44f031ce95559399b4d461f9d1015514051a
parent0bb8a011d57cb55c16ff502125b60e8e3bb3d5aa (diff)
parente8c77d9abda9c5c48de546a4ff667ffdf3d27c94 (diff)
downloademacs-bb383a54910c3094e5d228e0af62bf70e36203ca.tar.gz
emacs-bb383a54910c3094e5d228e0af62bf70e36203ca.zip
Merge from origin/emacs-29
e8c77d9abda Fix hfy-exclude-file-rules (bug#60562) c1d32d9a20d CC Mode: Prevent ids in temporary "declarators" getting i... 140824dc099 ; Fix more quoting in w32fns.c. f367ba3ed03 ; Avoid byte-compiler warning in eglot.el 1b458aced72 ; * lisp/progmodes/eglot.el: Remove stray space. 7c8eac8fbcb ; * src/w32fns.c: Fix quoting. Patch by Arash Esbati <ar... 67df34c143d Fix M-x eglot prompt when connection already exists (bug#... 3d1e74c82a8 Fix tree-sitter indent preset function (bug#60270) 352e41016bc ruby-ts-mode: Support the option ruby-block-indent 44c9cb8653d Improve indentation for jsx 82ae9caaddb * lisp/subr.el (while-let): Fix docs if-let->if-let* (bug... f16bd1ead43 Revert "* lisp/subr.el (while-let): Use if-let, not if-le... c8d54809727 Bump use-package version for Emacs 29.1
-rw-r--r--lisp/htmlfontify.el14
-rw-r--r--lisp/progmodes/cc-engine.el8
-rw-r--r--lisp/progmodes/eglot.el24
-rw-r--r--lisp/progmodes/js.el15
-rw-r--r--lisp/progmodes/ruby-ts-mode.el32
-rw-r--r--lisp/progmodes/typescript-ts-mode.el14
-rw-r--r--lisp/subr.el6
-rw-r--r--lisp/treesit.el1
-rw-r--r--lisp/use-package/use-package-core.el2
-rw-r--r--lisp/use-package/use-package.el2
-rw-r--r--src/w32fns.c16
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent.erts14
-rw-r--r--test/lisp/progmodes/ruby-ts-mode-tests.el1
13 files changed, 98 insertions, 51 deletions
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 0959405081f..1ab33cc6411 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -373,13 +373,13 @@ otherwise."
373 :type '(string)) 373 :type '(string))
374 374
375(defcustom hfy-exclude-file-rules 375(defcustom hfy-exclude-file-rules
376 '("\\.flc$" 376 '("\\.flc\\'"
377 "/CVS/.*" 377 "/CVS/"
378 ".*~$" 378 "~\\'"
379 "/\\.git\\(?:/.*\\)?$") 379 "/\\.git\\(?:/\\|\\'\\)")
380 "Define some regular expressions to exclude files" 380 "Regular expressions matching files to exclude."
381 :tag "exclude-rules" 381 :tag "exclude-rules"
382 :type '(list string) 382 :type '(repeat regexp)
383 :version "29.1") 383 :version "29.1")
384 384
385(defcustom hfy-display-class nil 385(defcustom hfy-display-class nil
@@ -1835,7 +1835,7 @@ Strips any leading \"./\" from each filename."
1835 (seq-some (lambda (r) 1835 (seq-some (lambda (r)
1836 (string-match r f)) 1836 (string-match r f))
1837 hfy-exclude-file-rules))) 1837 hfy-exclude-file-rules)))
1838 (directory-files-recursively "." ".*" nil t))) 1838 (directory-files-recursively "." "" nil t)))
1839 1839
1840;; strip the filename off, return a directory name 1840;; strip the filename off, return a directory name
1841;; not a particularly thorough implementation, but it will be 1841;; not a particularly thorough implementation, but it will be
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 8ac3ef6808d..45d90ea2431 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -10863,7 +10863,13 @@ This function might do hidden buffer changes."
10863 ;; types; other identifiers could just as well be 10863 ;; types; other identifiers could just as well be
10864 ;; constants in C++. 10864 ;; constants in C++.
10865 (memq at-type '(known found))))) 10865 (memq at-type '(known found)))))
10866 (throw 'at-decl-or-cast t) 10866 (progn
10867 ;; The user may be part way through typing a statement
10868 ;; beginning with an identifier. This makes a 'maybe
10869 ;; type in the following "declarator"'s arglist suspect.
10870 (when (eq at-type 'maybe)
10871 (setq unsafe-maybe t))
10872 (throw 'at-decl-or-cast t))
10867 ;; CASE 7 10873 ;; CASE 7
10868 ;; Can't be a valid declaration or cast, but if we've found a 10874 ;; Can't be a valid declaration or cast, but if we've found a
10869 ;; specifier it can't be anything else either, so treat it as 10875 ;; specifier it can't be anything else either, so treat it as
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index a846baa1b16..8ce1a8b7baf 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1075,7 +1075,7 @@ suitable root directory for a given LSP server's purposes."
1075 1075
1076;;;###autoload 1076;;;###autoload
1077(defun eglot (managed-major-mode project class contact language-id 1077(defun eglot (managed-major-mode project class contact language-id
1078 &optional interactive) 1078 &optional _interactive)
1079 "Start LSP server in support of PROJECT's buffers under MANAGED-MAJOR-MODE. 1079 "Start LSP server in support of PROJECT's buffers under MANAGED-MAJOR-MODE.
1080 1080
1081This starts a Language Server Protocol (LSP) server suitable for the 1081This starts a Language Server Protocol (LSP) server suitable for the
@@ -1112,17 +1112,17 @@ described in `eglot-server-programs', which see.
1112LANGUAGE-ID is the language ID string to send to the server for 1112LANGUAGE-ID is the language ID string to send to the server for
1113MANAGED-MAJOR-MODE, which matters to a minority of servers. 1113MANAGED-MAJOR-MODE, which matters to a minority of servers.
1114 1114
1115INTERACTIVE is t if called interactively." 1115INTERACTIVE is ignored and provided for backward compatibility."
1116 (interactive (append (eglot--guess-contact t) '(t))) 1116 (interactive
1117 (setq managed-major-mode (eglot--ensure-list managed-major-mode)) 1117 (let ((current-server (eglot-current-server)))
1118 (let* ((current-server (eglot-current-server)) 1118 (unless (or (null current-server)
1119 (live-p (and current-server (jsonrpc-running-p current-server)))) 1119 (y-or-n-p "\
1120 (if (and live-p 1120[eglot] Shut down current connection before attempting new one?"))
1121 interactive 1121 (user-error "[eglot] Connection attempt aborted by user."))
1122 (y-or-n-p "[eglot] Live process found, reconnect instead? ")) 1122 (prog1 (append (eglot--guess-contact t) '(t))
1123 (eglot-reconnect current-server interactive) 1123 (when current-server (ignore-errors (eglot-shutdown current-server))))))
1124 (when live-p (ignore-errors (eglot-shutdown current-server))) 1124 (eglot--connect (eglot--ensure-list managed-major-mode)
1125 (eglot--connect managed-major-mode project class contact language-id)))) 1125 project class contact language-id))
1126 1126
1127(defun eglot-reconnect (server &optional interactive) 1127(defun eglot-reconnect (server &optional interactive)
1128 "Reconnect to SERVER. 1128 "Reconnect to SERVER.
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index fa3b4687ef2..28305a0b39b 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3454,13 +3454,16 @@ This function is intended for use in `after-change-functions'."
3454 ((parent-is "statement_block") parent-bol js-indent-level) 3454 ((parent-is "statement_block") parent-bol js-indent-level)
3455 3455
3456 ;; JSX 3456 ;; JSX
3457 ((node-is "jsx_fragment") parent typescript-ts-mode-indent-offset) 3457 ((match "<" "jsx_fragment") parent 0)
3458 ((node-is "jsx_element") parent typescript-ts-mode-indent-offset) 3458 ((parent-is "jsx_fragment") parent js-indent-level)
3459 ((node-is "jsx_expression") parent typescript-ts-mode-indent-offset)
3460 ((node-is "jsx_self_closing_element") parent typescript-ts-mode-indent-offset)
3461 ((node-is "jsx_closing_element") parent 0) 3459 ((node-is "jsx_closing_element") parent 0)
3462 ((node-is "/") parent 0) 3460 ((node-is "jsx_element") parent js-indent-level)
3463 ((node-is ">") parent 0))))) 3461 ((parent-is "jsx_element") parent js-indent-level)
3462 ((parent-is "jsx_opening_element") parent js-indent-level)
3463 ((parent-is "jsx_expression") parent-bol js-indent-level)
3464 ((match "/" "jsx_self_closing_element") parent 0)
3465 ((parent-is "jsx_self_closing_element") parent js-indent-level)
3466 (no-node parent-bol 0)))))
3464 3467
3465(defvar js--treesit-keywords 3468(defvar js--treesit-keywords
3466 '("as" "async" "await" "break" "case" "catch" "class" "const" "continue" 3469 '("as" "async" "await" "break" "case" "catch" "class" "const" "continue"
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index d68b57966ba..939c054b041 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -780,12 +780,20 @@ i.e. expr of def foo(args) = expr is returned."
780 ;; but with node set to the statement and parent set to 780 ;; but with node set to the statement and parent set to
781 ;; body_statement for all others. ... Fine. Be that way. 781 ;; body_statement for all others. ... Fine. Be that way.
782 ;; Ditto for "block" and "block_body" 782 ;; Ditto for "block" and "block_body"
783 ((node-is "body_statement") parent-bol ruby-indent-level) 783 ((node-is "body_statement")
784 ((parent-is "body_statement") (ruby-ts--bol ruby-ts--grand-parent-node) ruby-indent-level) 784 (ruby-ts--block-indent-anchor ruby-ts--parent-node)
785 ((match "end" "do_block") parent-bol 0) 785 ruby-indent-level)
786 ((n-p-gp "block_body" "block" nil) parent-bol ruby-indent-level) 786 ((parent-is "body_statement")
787 ((n-p-gp nil "block_body" "block") (ruby-ts--bol ruby-ts--grand-parent-node) ruby-indent-level) 787 (ruby-ts--block-indent-anchor ruby-ts--grand-parent-node)
788 ((match "}" "block") parent-bol 0) 788 ruby-indent-level)
789 ((match "end" "do_block") (ruby-ts--block-indent-anchor ruby-ts--parent-node) 0)
790 ((n-p-gp "block_body" "block" nil)
791 (ruby-ts--block-indent-anchor ruby-ts--parent-node)
792 ruby-indent-level)
793 ((n-p-gp nil "block_body" "block")
794 (ruby-ts--block-indent-anchor ruby-ts--grand-parent-node)
795 ruby-indent-level)
796 ((match "}" "block") (ruby-ts--block-indent-anchor ruby-ts--parent-node) 0)
789 797
790 ;; Chained strings 798 ;; Chained strings
791 ((match "string" "chained_string") first-sibling 0) 799 ((match "string" "chained_string") first-sibling 0)
@@ -794,6 +802,18 @@ i.e. expr of def foo(args) = expr is returned."
794 (catch-all parent-bol ruby-indent-level)))) 802 (catch-all parent-bol ruby-indent-level))))
795 `((ruby . ,common)))) 803 `((ruby . ,common))))
796 804
805(defun ruby-ts--block-indent-anchor (block-node-getter)
806 (lambda (node parent _bol &rest _rest)
807 (let ((block-node (funcall block-node-getter node parent)))
808 (save-excursion
809 (goto-char
810 (treesit-node-start
811 (if ruby-block-indent
812 (ruby-ts--statement-ancestor block-node)
813 block-node)))
814 (back-to-indentation)
815 (point)))))
816
797(defun ruby-ts--class-or-module-p (node) 817(defun ruby-ts--class-or-module-p (node)
798 "Predicate if NODE is a class or module." 818 "Predicate if NODE is a class or module."
799 (string-match-p ruby-ts--class-or-module-regex (treesit-node-type node))) 819 (string-match-p ruby-ts--class-or-module-regex (treesit-node-type node)))
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el
index cd631d048ea..f7bf7ed7e42 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -97,13 +97,15 @@ Argument LANGUAGE is either `typescript' or `tsx'."
97 ((parent-is "binary_expression") parent-bol typescript-ts-mode-indent-offset) 97 ((parent-is "binary_expression") parent-bol typescript-ts-mode-indent-offset)
98 98
99 ,@(when (eq language 'tsx) 99 ,@(when (eq language 'tsx)
100 `(((node-is "jsx_fragment") parent typescript-ts-mode-indent-offset) 100 `(((match "<" "jsx_fragment") parent 0)
101 ((node-is "jsx_element") parent typescript-ts-mode-indent-offset) 101 ((parent-is "jsx_fragment") parent typescript-ts-mode-indent-offset)
102 ((node-is "jsx_expression") parent typescript-ts-mode-indent-offset)
103 ((node-is "jsx_self_closing_element") parent typescript-ts-mode-indent-offset)
104 ((node-is "jsx_closing_element") parent 0) 102 ((node-is "jsx_closing_element") parent 0)
105 ((node-is "/") parent 0) 103 ((node-is "jsx_element") parent typescript-ts-mode-indent-offset)
106 ((node-is ">") parent 0))) 104 ((parent-is "jsx_element") parent typescript-ts-mode-indent-offset)
105 ((parent-is "jsx_opening_element") parent typescript-ts-mode-indent-offset)
106 ((parent-is "jsx_expression") parent-bol typescript-ts-mode-indent-offset)
107 ((match "/" "jsx_self_closing_element") parent 0)
108 ((parent-is "jsx_self_closing_element") parent typescript-ts-mode-indent-offset)))
107 (no-node parent-bol 0)))) 109 (no-node parent-bol 0))))
108 110
109(defvar typescript-ts-mode--keywords 111(defvar typescript-ts-mode--keywords
diff --git a/lisp/subr.el b/lisp/subr.el
index 1762c94a43e..f909b63aabe 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2562,12 +2562,14 @@ The variable list SPEC is the same as in `if-let'."
2562Evaluate each binding in turn, stopping if a binding value is nil. 2562Evaluate each binding in turn, stopping if a binding value is nil.
2563If all bindings are non-nil, eval BODY and repeat. 2563If all bindings are non-nil, eval BODY and repeat.
2564 2564
2565The variable list SPEC is the same as in `if-let'." 2565The variable list SPEC is the same as in `if-let*'."
2566 (declare (indent 1) (debug if-let)) 2566 (declare (indent 1) (debug if-let))
2567 (let ((done (gensym "done"))) 2567 (let ((done (gensym "done")))
2568 `(catch ',done 2568 `(catch ',done
2569 (while t 2569 (while t
2570 (if-let ,spec 2570 ;; This is `if-let*', not `if-let', deliberately, despite the
2571 ;; name of this macro. See bug#60758.
2572 (if-let* ,spec
2571 (progn 2573 (progn
2572 ,@body) 2574 ,@body)
2573 (throw ',done nil)))))) 2575 (throw ',done nil))))))
diff --git a/lisp/treesit.el b/lisp/treesit.el
index e9f5a8b37b1..69bfff21df3 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1152,7 +1152,6 @@ See `treesit-simple-indent-presets'.")
1152 (and (>= (point) comment-start-bol) 1152 (and (>= (point) comment-start-bol)
1153 adaptive-fill-regexp 1153 adaptive-fill-regexp
1154 (looking-at adaptive-fill-regexp) 1154 (looking-at adaptive-fill-regexp)
1155 (> (match-end 0) (match-beginning 0))
1156 (match-end 0)))))) 1155 (match-end 0))))))
1157 ;; TODO: Document. 1156 ;; TODO: Document.
1158 (cons 'grand-parent 1157 (cons 'grand-parent
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el
index 379e119b60f..7ab5bdc276f 100644
--- a/lisp/use-package/use-package-core.el
+++ b/lisp/use-package/use-package-core.el
@@ -65,7 +65,7 @@
65 :link '(custom-manual "(use-package) Top") 65 :link '(custom-manual "(use-package) Top")
66 :version "29.1") 66 :version "29.1")
67 67
68(defconst use-package-version "2.4.4" 68(defconst use-package-version "2.4.5"
69 "This version of `use-package'.") 69 "This version of `use-package'.")
70 70
71(defcustom use-package-keywords 71(defcustom use-package-keywords
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 7682468522d..1b63a6d651a 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -5,7 +5,7 @@
5;; Author: John Wiegley <johnw@newartisans.com> 5;; Author: John Wiegley <johnw@newartisans.com>
6;; Maintainer: John Wiegley <johnw@newartisans.com> 6;; Maintainer: John Wiegley <johnw@newartisans.com>
7;; Created: 17 Jun 2012 7;; Created: 17 Jun 2012
8;; Version: 2.4.4 8;; Version: 2.4.5
9;; Package-Requires: ((emacs "24.3") (bind-key "2.4")) 9;; Package-Requires: ((emacs "24.3") (bind-key "2.4"))
10;; Keywords: dotemacs startup speed config package extensions 10;; Keywords: dotemacs startup speed config package extensions
11;; URL: https://github.com/jwiegley/use-package 11;; URL: https://github.com/jwiegley/use-package
diff --git a/src/w32fns.c b/src/w32fns.c
index 192d3ddf27a..b4192a5ffa6 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -10396,8 +10396,8 @@ to be converted to forward slashes by the caller. */)
10396#endif /* WINDOWSNT */ 10396#endif /* WINDOWSNT */
10397 10397
10398/* Query a value from the Windows Registry (under HKCU and HKLM), 10398/* Query a value from the Windows Registry (under HKCU and HKLM),
10399 where `key` is the registry key, `name` is the name, and `lpdwtype` 10399 where `key' is the registry key, `name' is the name, and `lpdwtype'
10400 is a pointer to the return value's type. `lpwdtype` can be NULL if 10400 is a pointer to the return value's type. `lpwdtype' can be NULL if
10401 you do not care about the type. 10401 you do not care about the type.
10402 10402
10403 Returns: pointer to the value, or null pointer if the key/name does 10403 Returns: pointer to the value, or null pointer if the key/name does
@@ -10664,7 +10664,7 @@ pops up the Windows Run dialog, <lwindow>-<Pause> pops up the "System
10664Properties" dialog, etc. On Windows 10, no \"Windows\" key 10664Properties" dialog, etc. On Windows 10, no \"Windows\" key
10665combinations are normally handed to applications. To enable Emacs to 10665combinations are normally handed to applications. To enable Emacs to
10666process \"Windows\" key combinations, use the function 10666process \"Windows\" key combinations, use the function
10667`w32-register-hot-key`. 10667`w32-register-hot-key'.
10668 10668
10669For Windows 98/ME, see the doc string of `w32-phantom-key-code'. */); 10669For Windows 98/ME, see the doc string of `w32-phantom-key-code'. */);
10670 Vw32_pass_lwindow_to_system = Qt; 10670 Vw32_pass_lwindow_to_system = Qt;
@@ -10683,7 +10683,7 @@ pops up the Windows Run dialog, <rwindow>-<Pause> pops up the "System
10683Properties" dialog, etc. On Windows 10, no \"Windows\" key 10683Properties" dialog, etc. On Windows 10, no \"Windows\" key
10684combinations are normally handed to applications. To enable Emacs to 10684combinations are normally handed to applications. To enable Emacs to
10685process \"Windows\" key combinations, use the function 10685process \"Windows\" key combinations, use the function
10686`w32-register-hot-key`. 10686`w32-register-hot-key'.
10687 10687
10688For Windows 98/ME, see the doc string of `w32-phantom-key-code'. */); 10688For Windows 98/ME, see the doc string of `w32-phantom-key-code'. */);
10689 Vw32_pass_rwindow_to_system = Qt; 10689 Vw32_pass_rwindow_to_system = Qt;
@@ -10698,7 +10698,7 @@ acting on \"Windows\" key events when `w32-pass-lwindow-to-system' or
10698`w32-pass-rwindow-to-system' is nil. 10698`w32-pass-rwindow-to-system' is nil.
10699 10699
10700This variable is only used on Windows 98 and ME. For other Windows 10700This variable is only used on Windows 98 and ME. For other Windows
10701versions, see the documentation of the `w32-register-hot-key` 10701versions, see the documentation of the `w32-register-hot-key'
10702function. */); 10702function. */);
10703 /* Although 255 is technically not a valid key code, it works and 10703 /* Although 255 is technically not a valid key code, it works and
10704 means that this hack won't interfere with any real key code. */ 10704 means that this hack won't interfere with any real key code. */
@@ -10732,7 +10732,7 @@ The value can be hyper, super, meta, alt, control or shift for the
10732respective modifier, or nil to appear as the `lwindow' key. 10732respective modifier, or nil to appear as the `lwindow' key.
10733Any other value will cause the key to be ignored. 10733Any other value will cause the key to be ignored.
10734 10734
10735Also see the documentation of the `w32-register-hot-key` function. */); 10735Also see the documentation of the `w32-register-hot-key' function. */);
10736 Vw32_lwindow_modifier = Qnil; 10736 Vw32_lwindow_modifier = Qnil;
10737 10737
10738 DEFVAR_LISP ("w32-rwindow-modifier", 10738 DEFVAR_LISP ("w32-rwindow-modifier",
@@ -10742,7 +10742,7 @@ The value can be hyper, super, meta, alt, control or shift for the
10742respective modifier, or nil to appear as the `rwindow' key. 10742respective modifier, or nil to appear as the `rwindow' key.
10743Any other value will cause the key to be ignored. 10743Any other value will cause the key to be ignored.
10744 10744
10745Also see the documentation of the `w32-register-hot-key` function. */); 10745Also see the documentation of the `w32-register-hot-key' function. */);
10746 Vw32_rwindow_modifier = Qnil; 10746 Vw32_rwindow_modifier = Qnil;
10747 10747
10748 DEFVAR_LISP ("w32-apps-modifier", 10748 DEFVAR_LISP ("w32-apps-modifier",
@@ -11271,7 +11271,7 @@ globals_of_w32fns (void)
11271 get_proc_addr (hm_kernel32, "SetThreadDescription"); 11271 get_proc_addr (hm_kernel32, "SetThreadDescription");
11272 11272
11273 /* Support OS dark mode on Windows 10 version 1809 and higher. 11273 /* Support OS dark mode on Windows 10 version 1809 and higher.
11274 See `w32_applytheme` which uses appropriate APIs per version of Windows. 11274 See `w32_applytheme' which uses appropriate APIs per version of Windows.
11275 For future wretches who may need to understand Windows build numbers: 11275 For future wretches who may need to understand Windows build numbers:
11276 https://docs.microsoft.com/en-us/windows/release-health/release-information 11276 https://docs.microsoft.com/en-us/windows/release-health/release-information
11277 */ 11277 */
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent.erts b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
index 71524e273f3..70fce68b0ec 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -133,6 +133,20 @@ Name: Multiline Block Comments 4 (bug#60270)
133 */ 133 */
134=-=-= 134=-=-=
135 135
136Name: Multiline Block Comments 5 (bug#60270)
137
138=-=
139/*
140line one
141line 2
142 */
143=-=
144/*
145 line one
146 line 2
147 */
148=-=-=
149
136 150
137Code: 151Code:
138 (lambda () 152 (lambda ()
diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el
index b2c990f8e56..eaf6367a306 100644
--- a/test/lisp/progmodes/ruby-ts-mode-tests.el
+++ b/test/lisp/progmodes/ruby-ts-mode-tests.el
@@ -251,6 +251,7 @@ The whitespace before and including \"|\" on each line is removed."
251 (kill-buffer buf))))) 251 (kill-buffer buf)))))
252 252
253(ruby-ts-deftest-indent "ruby-method-params-indent.rb") 253(ruby-ts-deftest-indent "ruby-method-params-indent.rb")
254(ruby-ts-deftest-indent "ruby-block-indent.rb")
254 255
255(provide 'ruby-ts-mode-tests) 256(provide 'ruby-ts-mode-tests)
256 257