[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode 5989dca 180/192: Fontify operator declaration
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode 5989dca 180/192: Fontify operator declaration |
Date: |
Sun, 29 Aug 2021 11:02:13 -0400 (EDT) |
branch: elpa/dart-mode
commit 5989dca60f5c03a74d0eb4cd40a22a735a9ffe9f
Author: Brady Trainor <mail@bradyt.net>
Commit: Brady Trainor <mail@bradyt.net>
Fontify operator declaration
---
dart-mode.el | 11 +++++++++--
test/test.el | 1 -
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index dfad928..616c340 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -140,6 +140,11 @@ indentation levels from right to left."
(?A . ?F)
digit)))))
+(defvar dart--operator-declaration-re (rx "operator"
+ (one-or-more space)
+ (group
+ (one-or-more (not (any ?\())))))
+
(eval-and-compile (defun dart--identifier (&optional case)
`(and (or word-start symbol-start)
(zero-or-more (any ?$ ?_))
@@ -459,7 +464,8 @@ untyped parameters. For example, in
(defvar dart-font-lock-keywords-1
`((,(regexp-opt dart--file-directives 'words) . font-lock-builtin-face)
- (dart--function-declaration-func .
font-lock-function-name-face)))
+ (dart--function-declaration-func . font-lock-function-name-face)
+ (,dart--operator-declaration-re . (1
font-lock-function-name-face))))
(defvar dart-font-lock-keywords-2
`(,dart--async-keywords-re
@@ -472,7 +478,8 @@ untyped parameters. For example, in
(,dart--constants-re . font-lock-constant-face)
(,(regexp-opt dart--types 'words) . font-lock-type-face)
(,dart--types-re . font-lock-type-face)
- (dart--function-declaration-func . font-lock-function-name-face)))
+ (dart--function-declaration-func . font-lock-function-name-face)
+ (,dart--operator-declaration-re . (1 font-lock-function-name-face))))
(defvar dart-font-lock-keywords-3
(append
diff --git a/test/test.el b/test/test.el
index ae602d8..88fefce 100644
--- a/test/test.el
+++ b/test/test.el
@@ -31,7 +31,6 @@
(should (dart-font-lock-test-apps "faceup/issues/covariant.dart")))
(ert-deftest dart-font-lock-declared-operators-test ()
- :expected-result :failed
(should (dart-font-lock-test-apps "faceup/issues/declared-operators.dart")))
(ert-deftest dart-font-lock-named-constructors-test ()
- [nongnu] elpa/dart-mode 591b6fe 170/192: Improve handling of strings, (continued)
- [nongnu] elpa/dart-mode 591b6fe 170/192: Improve handling of strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f20f895 164/192: Move docs from README to Wiki, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 36fe2ce 166/192: Fontify identifiers after multi-nested types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 57767bb 157/192: Makes current indentation logic more usable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 90f1120 162/192: Require subr-x for string-empty-p, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 8983e17 186/192: Code in font-lock tests were copied from dart.dev site, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 07a9e76 189/192: Add failing font-lock test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 3c089f3 183/192: Fix font lock for abstract method, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 40f6741 150/192: Fontifies more keywords, builtins, constants and types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d5776f1 172/192: Fixes fontification of small strings containing only backslashes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 5989dca 180/192: Fontify operator declaration,
ELPA Syncer <=
- [nongnu] elpa/dart-mode 1c2cbe5 179/192: Add faceup tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 04fcd64 190/192: Treat angle brackets as puncutation syntax instead of symbol syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e41f41e 174/192: Fontify untyped parameters in anonymous functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 43975c9 192/192: Add syntax highlighting for keywords extension, late, required, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ed80bc8 002/192: Set a bunch of CC-mode configuration vars., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 64eb399 003/192: Fix array literal indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 91cc86c 005/192: Make "var" a typeless decl keyword., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 8098454 006/192: Initialize the syntax table., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 4e56274 013/192: Version 0.2., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 7e45699 018/192: Fix the Version header., ELPA Syncer, 2021/08/29