branch: elpa/dart-mode
commit fc47325b14a1c57d20ba7a73e2a466f17f945aa9
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>
Fix more keywords.
---
dart-mode.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 6179df4..3e0bf1b 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -23,6 +23,7 @@
;;; Code:
(require 'cc-mode)
+(require 'cc-langs)
(eval-when-compile (require 'cl))
(eval-and-compile (c-add-language 'dart-mode 'java-mode))
@@ -111,13 +112,13 @@
dart nil)
(c-lang-defconst c-decl-hangon-kwds
- dart '("get" "set"))
+ dart '("get" "set" "native"))
(c-lang-defconst c-postfix-decl-spec-kwds
- dart '("extends" "implements"))
+ dart '("extends" "implements" "factory"))
(c-lang-defconst c-type-list-kwds
- dart '("new" "const" "is" "is!"))
+ dart '("new" "const" "is" "is!" "extends" "implements" "factory"))
(c-lang-defconst c-ref-list-kwds
dart nil)
@@ -143,6 +144,10 @@
(c-lang-defconst c-cast-parens
dart nil)
+(c-lang-defconst c-block-prefix-disallowed-chars
+ dart (set-difference (c-lang-const c-block-prefix-disallowed-chars)
+ '(?\" ?')))
+
(c-lang-defconst c-opt-type-suffix-key
dart nil)