[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 6ae2c7ab9e 135/222: Highlight multiple imp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 6ae2c7ab9e 135/222: Highlight multiple implements types (#96) |
Date: |
Sun, 6 Feb 2022 16:59:27 -0500 (EST) |
branch: elpa/typescript-mode
commit 6ae2c7ab9e8f5bd5c8f924e9abae76fdd0c295b6
Author: Eder Elorriaga <gexplorer8@gmail.com>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Highlight multiple implements types (#96)
* Highlight multiple implements types
* Add tests for 1 to many elements after implements
---
typescript-mode-general-tests.el | 16 ++++++++++++++++
typescript-mode.el | 4 ++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/typescript-mode-general-tests.el b/typescript-mode-general-tests.el
index cb89f8b986..9a79108da1 100644
--- a/typescript-mode-general-tests.el
+++ b/typescript-mode-general-tests.el
@@ -358,6 +358,22 @@ declare function declareFunctionDefn(x3: xty3, y3: yty3):
ret3;"
(should (eq (get-face-at "Foo") 'font-lock-type-face))
(should (eq (get-face-at "Bar") 'font-lock-type-face))
(should (eq (get-face-at "Qux") 'font-lock-type-face)))
+ (test-with-fontified-buffer
+ "export class Foo extends Bar implements Qux, Ajx {}"
+ (should (eq (get-face-at "Foo") 'font-lock-type-face))
+ (should (eq (get-face-at "Bar") 'font-lock-type-face))
+ (should (eq (get-face-at "Qux") 'font-lock-type-face))
+ (should (eq (get-face-at ",") 'nil))
+ (should (eq (get-face-at "Ajx") 'font-lock-type-face)))
+ (test-with-fontified-buffer
+ "export class Foo extends Bar implements Qux, Ajx, Psd {}"
+ (should (eq (get-face-at "Foo") 'font-lock-type-face))
+ (should (eq (get-face-at "Bar") 'font-lock-type-face))
+ (should (eq (get-face-at "Qux") 'font-lock-type-face))
+ (should (eq (get-face-at ",") 'nil))
+ (should (eq (get-face-at "Ajx") 'font-lock-type-face))
+ (should (eq (get-face-at ",") 'nil))
+ (should (eq (get-face-at "Psd") 'font-lock-type-face)))
;; Ensure we require symbol boundaries.
(test-with-fontified-buffer
"Notclass Foo"
diff --git a/typescript-mode.el b/typescript-mode.el
index 6f54c7a594..3f61313b27 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -1749,8 +1749,8 @@ and searches for the next token to be highlighted."
(,(rx symbol-start "extends" (+ space) (group (+ (or (syntax word) (syntax
symbol)))))
(1 font-lock-type-face))
- (,(rx symbol-start "implements" (+ space) (group (+ (or (syntax word)
(syntax symbol)))))
- (1 font-lock-type-face))
+ (,(rx symbol-start "implements" (+ space))
+ (,(rx symbol-start (+ (syntax word))) nil nil (0 font-lock-type-face)))
(,(rx symbol-start "interface" (+ space) (group (+ (or (syntax word)
(syntax symbol)))))
(1 font-lock-type-face))
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, (continued)
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 67fd5fe4f2 200/222: Delete .travis.yml, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1043025d42 204/222: Merge pull request #143 from jcs-PR/badge, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3abc9dc6da 006/222: missed table, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a922c27e95 111/222: Merge pull request #76 from ananthakumaran/fix/drop-typescript-parent-mode, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1da0c0e8b3 084/222: Try fix CI-build., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 255f670a40 130/222: Merge pull request #92 from dakra/autoload-indent-level, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 32b8e1b6d0 134/222: Merge pull request #94 from jack-williams/add-bigint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 6ae2c7ab9e 135/222: Highlight multiple implements types (#96),
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 761f3aec6e 161/222: Fix issues reported by package-lint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e82a4d2527 170/222: Add a new indentation test case that triggers an infinite loop., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 54f14c4827 202/222: Update README.md, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b369d7d251 206/222: Merge pull request #147 from ltrel/typo-fixes, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bc37bc4b15 176/222: Fix another member expression infinite loop., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1e9fc35cb9 210/222: Make cask and emacs locations overridable., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 96800ed070 208/222: Migrate build to use proper tasks and new source for Emacs, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e824162051 222/222: Merge pull request #159 from tancnle/fix-cl-deprecation-warnings, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5b0487aae8 085/222: Fix the Emacs regex used for highlighting TS regexes., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2cd997a8d5 102/222: Fix typescript--backward-to-parameter-list, ELPA Syncer, 2022/02/06