branch: elpa/dart-mode
commit 9db2679f1d933377c0d45c01e37721e6f45813f1
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
Fixes invalid file path format on Windows
---
dart-mode.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dart-mode.el b/dart-mode.el
index deb9323..82ddfc6 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -918,7 +918,10 @@ otherwise. If no FILE is given, then this will default to
the variable
The analysis roots are directories that contain Dart files. The analysis server
analyzes all Dart files under the analysis roots and provides information about
them when requested."
- (add-to-list 'dart-analysis-roots dir)
+ (add-to-list 'dart-analysis-roots
+ (if (equal system-type 'windows-nt)
+ (replace-regexp-in-string (rx "/") (rx "\\") dir)
+ dir))
(dart--send-analysis-roots))
(defun dart--send-analysis-roots ()