emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/typescript-mode 4b69ca57f5 080/222: Simplify regexp litera


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 4b69ca57f5 080/222: Simplify regexp literal
Date: Sun, 6 Feb 2022 16:59:19 -0500 (EST)

branch: elpa/typescript-mode
commit 4b69ca57f51d9de8a29fd3880a76d8eff1fb42dd
Author: Bartłomiej Kruczyk <bartlomiej.kruczyk@gmail.com>
Commit: Bartłomiej Kruczyk <bartlomiej.kruczyk@gmail.com>

    Simplify regexp literal
---
 typescript-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 9d16f697d7..25918105a0 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -1871,7 +1871,7 @@ This performs fontification according to 
`typescript--class-styles'."
 ;; as the newline is escaped with \. Account for that in the regexp
 ;; below.
 (defconst typescript--regexp-literal
-  
"[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)\\(?:\\\\/\\|[^/*]\\)\\(?:\\\\/\\|[^/]\\)*\\(/\\)"
+  "[=(,:]\\(?:\\s-\\|\n\\)*\\(/\\)[^/]*\\(/\\)"
   "Regexp matching a typescript regular expression literal.
 Match groups 1 and 2 are the characters forming the beginning and
 end of the literal.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]