Skip to content

Commit 0f679b1

Browse files
authored
Merge pull request #39 from Hi-Angel/fix-indentations
Fix imports getting unsolicited indentation
2 parents 9dc496d + f364b21 commit 0f679b1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

purescript-indentation.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ indent the current line. This has to be fixed elsewhere."
993993
"Return token starting at point."
994994
(cond ((looking-at
995995
(rx (group
996-
(or "if" "then" "else" "let" "in" "ado" "mdo" "rec"
996+
(or "if" "then" "else" "let" "in" "ado" "mdo" "rec" "import"
997997
(seq (0+ (seq (1+ word) ".")) "do")
998998
"proc" "case" "of" "where" "module" "data" "type" "newtype"
999999
"class" "instance"))

tests/purescript-indentation-tests.el

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ data Foo = Foo1 Bar |
7575
Foo3 Unit"))
7676

7777
(ert-deftest imports-zero-indented ()
78-
:expected-result :failed
7978
(purescript-test-indentation "
8079
module MyModule where
8180

0 commit comments

Comments
 (0)