branch: elpa/dart-mode
commit 847707d9f324289a7defffb6e9035e56c750e0e7
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
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
+}