branch: elpa/dart-mode
commit be14d277accab89411d18b65505308ce12308549
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>
Dart doesn't use . as an identifier op.
---
dart-mode.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 238c69e..011c480 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -32,7 +32,6 @@
;; * Multiline strings using """ and ''' are not recognized. They fontify
;; correctly, but only because they look like three strings in a row.
;; * In a map with identifier keys, the first key is fontified like a label.
-;; * Named constructors aren't fontified correctly.
;;; Code:
@@ -48,6 +47,9 @@
(c-lang-defconst c-symbol-start
dart (concat "[" c-alpha "_]"))
+(c-lang-defconst c-identifier-ops
+ dart nil)
+
(c-lang-defconst c-after-id-concat-ops
dart nil)
@@ -74,7 +76,6 @@
(c-lang-defconst c-operators
dart `((prefix "#")
- ,@(c-lang-const c-identifier-ops)
(postfix-if-paren "<" ">")
(prefix "super")
(left-assoc ".")