[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode bbeadaa 181/192: Reorganize some keyword fontifi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode bbeadaa 181/192: Reorganize some keyword fontification |
Date: |
Sun, 29 Aug 2021 11:02:14 -0400 (EDT) |
branch: elpa/dart-mode
commit bbeadaadff3810da2ab7a7159a3d9e268a39ea3d
Author: Brady Trainor <mail@bradyt.com>
Commit: Brady Trainor <mail@bradyt.net>
Reorganize some keyword fontification
- Move mixin from keywords to builtins
- Add covariant, Function, interface to builtins
- Remove hide, of, show from builtins
---
dart-mode.el | 12 ++++++------
test/faceup/issues/covariant.dart.faceup | 2 +-
test/test.el | 1 -
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 616c340..edffa20 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -102,19 +102,19 @@ indentation levels from right to left."
(defvar dart--builtins
;; ECMA 408; Section: Identifier Reference
;; "Built-in identifiers"
- '("abstract" "as" "deferred" "dynamic" "export" "external" "hide"
- "factory" "get" "implements" "import" "library" "of" "operator"
- "part" "set" "show" "static" "typedef"))
+ '("abstract" "as" "covariant" "deferred" "dynamic" "export"
+ "external" "factory" "Function" "get" "implements" "import"
+ "interface" "library" "mixin" "operator" "part" "set" "static"
+ "typedef"))
(defvar dart--keywords
;; ECMA 408; Section: Reserved Words
'("assert" "break" "case" "catch" "class" "const" "continue"
"default" "do" "else" "enum" "extends" "final" "finally" "for"
"if" "in" "is" "new" "rethrow" "return" "super" "switch" "this"
- "throw" "try" "var" "while" "with" "mixin"))
-;; mixin is not part of ECMA 408 but it's used in dart.
+ "throw" "try" "var" "while" "with"))
-(defvar dart--types '("bool" "double" "dynamic" "int" "num" "void"))
+(defvar dart--types '("bool" "double" "int" "num" "void"))
(defvar dart--constants '("false" "null" "true"))
diff --git a/test/faceup/issues/covariant.dart.faceup
b/test/faceup/issues/covariant.dart.faceup
index 1008b1d..67be360 100644
--- a/test/faceup/issues/covariant.dart.faceup
+++ b/test/faceup/issues/covariant.dart.faceup
@@ -1,3 +1,3 @@
«k:class» «t:Cat» «k:extends» «t:Animal» {
- «t:void» «f:chase»(«k:covariant» «t:Mouse» «v:x») { ... }
+ «t:void» «f:chase»(«b:covariant» «t:Mouse» «v:x») { ... }
}
diff --git a/test/test.el b/test/test.el
index 88fefce..a2b029e 100644
--- a/test/test.el
+++ b/test/test.el
@@ -27,7 +27,6 @@
(should (dart-font-lock-test-apps "faceup/issues/abstract-methods.dart")))
(ert-deftest dart-font-lock-covariant-test ()
- :expected-result :failed
(should (dart-font-lock-test-apps "faceup/issues/covariant.dart")))
(ert-deftest dart-font-lock-declared-operators-test ()
- [nongnu] elpa/dart-mode e94acb5 168/192: Fontify SCREAMING_CAPS words of length greater than two as constant, (continued)
- [nongnu] elpa/dart-mode e94acb5 168/192: Fontify SCREAMING_CAPS words of length greater than two as constant, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c51e750 163/192: Stop testing 24.3 on travis, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 735868e 154/192: Copy/paste multiline string syntax-propertize from python.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9ad52e8 158/192: Search for sdk from flutter if no dart on path, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c568118 175/192: Move dart server code to a separate repo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ae8a28b 161/192: Follow conventions in font-lock levels, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 327b9aa 167/192: Use conventions in commentary, docstrings, defvar vs setq, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 31861e8 173/192: Add mixin keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 28ebbaf 176/192: Update tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ea60ffd 178/192: Move README back to markdown, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode bbeadaa 181/192: Reorganize some keyword fontification,
ELPA Syncer <=
- [nongnu] elpa/dart-mode d6afa8c 153/192: Fontify identifiers following declared identifiers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9b65aae 187/192: Add failing tests for fontification of factories and generic methods, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode a715dc6 177/192: Move license, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e820b09 155/192: Regex catches dollar signs now, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e5bd30d 184/192: Avoid false positives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9b1c871 001/192: Beginning of dart-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f86416b 035/192: Handle indentation in constructors with initializer lists., ELPA Syncer, 2021/08/29