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

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

[nongnu] elpa/dart-mode 51b9915 023/192: Fix optional argument fontifica


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 51b9915 023/192: Fix optional argument fontification.
Date: Sun, 29 Aug 2021 11:01:43 -0400 (EDT)

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

    Fix optional argument fontification.
---
 dart-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dart-mode.el b/dart-mode.el
index 0d35e30..ccde540 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.
-;; * Optional arguments aren't always fontified correctly.
 ;; * =>-style methods that span multiple lines can screw up indentation and
 ;;   brace matching.
 ;; * Named constructors aren't fontified correctly.
@@ -158,6 +157,9 @@
 (c-lang-defconst c-other-kwds
   dart '("in"))
 
+(c-lang-defconst c-decl-prefix-re
+  dart "\\([\{\}\([;,<]+\\)")
+
 (c-lang-defconst c-cast-parens
   dart nil)
 



reply via email to

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