branch: elpa/dart-mode
commit 51b9915bade1a889c4e492f5600bb62a01a8dbca
Author: Nathan Weizenbaum <[email protected]>
Commit: Nathan Weizenbaum <[email protected]>

    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