emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dart-mode fc47325 012/192: Fix more keywords.


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode fc47325 012/192: Fix more keywords.
Date: Sun, 29 Aug 2021 11:01:41 -0400 (EDT)

branch: elpa/dart-mode
commit fc47325b14a1c57d20ba7a73e2a466f17f945aa9
Author: Nathan Weizenbaum <nweiz@google.com>
Commit: Nathan Weizenbaum <nweiz@google.com>

    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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]