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

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

[nongnu] elpa/dart-mode 847707d 129/192: Require final newline, like dar


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 847707d 129/192: Require final newline, like dartfmt
Date: Sun, 29 Aug 2021 11:02:04 -0400 (EDT)

branch: elpa/dart-mode
commit 847707d9f324289a7defffb6e9035e56c750e0e7
Author: Brady Trainor <mail@bradyt.com>
Commit: Brady Trainor <mail@bradyt.com>

    Require final newline, like dartfmt
---
 dart-mode.el         | 1 +
 test/breaks.dart     | 2 +-
 test/idempotent.dart | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index 3718ffd..33ac4da 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -94,6 +94,7 @@
 (require 'json)
 (require 's)
 
+(add-to-list 'c-require-final-newline '(dart-mode . t))
 
 ;;; Utility functions and macros
 
diff --git a/test/breaks.dart b/test/breaks.dart
index 3fc7a12..0c8daba 100644
--- a/test/breaks.dart
+++ b/test/breaks.dart
@@ -15,4 +15,4 @@ class _LoginPageState extends State<LoginPage> {
             ),
     ])));
   }
-}
\ No newline at end of file
+}
diff --git a/test/idempotent.dart b/test/idempotent.dart
index 22fd62c..6acf824 100644
--- a/test/idempotent.dart
+++ b/test/idempotent.dart
@@ -9,4 +9,4 @@ class DartFormatter {
             new SourceCode(source, uri: uri, isCompilationUnit: true))
         .text;
   }
-}
\ No newline at end of file
+}



reply via email to

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