Skip to content

Commit

Permalink
Merge pull request #39 from Hi-Angel/fix-indentations
Browse files Browse the repository at this point in the history
Fix imports getting unsolicited indentation
  • Loading branch information
Hi-Angel authored Feb 24, 2025
2 parents 9dc496d + f364b21 commit 0f679b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion purescript-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ indent the current line. This has to be fixed elsewhere."
"Return token starting at point."
(cond ((looking-at
(rx (group
(or "if" "then" "else" "let" "in" "ado" "mdo" "rec"
(or "if" "then" "else" "let" "in" "ado" "mdo" "rec" "import"
(seq (0+ (seq (1+ word) ".")) "do")
"proc" "case" "of" "where" "module" "data" "type" "newtype"
"class" "instance"))
Expand Down
1 change: 0 additions & 1 deletion tests/purescript-indentation-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ data Foo = Foo1 Bar |
Foo3 Unit"))

(ert-deftest imports-zero-indented ()
:expected-result :failed
(purescript-test-indentation "
module MyModule where
Expand Down

0 comments on commit 0f679b1

Please sign in to comment.