Skip to content

Implement QuasiQuotes syntax in indentation #909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 3, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Special case QuasiQuotes in indentation
  • Loading branch information
gracjan committed Oct 3, 2015
commit 4852612361927711752bb690afe934342333a19f
2 changes: 2 additions & 0 deletions haskell-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,8 @@ line."
(if (or (looking-at "'\\([^\\']\\|\\\\.\\)'")
(looking-at "'\\\\\\([^\\']\\|\\\\.\\)*'")
(looking-at "\"\\([^\\\"]\\|\\\\.\\)*\"")
;; QuasiQuotes, with help of propertize buffer and string delimeters
(looking-at "\\s\"\\S\"*\\s\"")
;; Hierarchical names always start with uppercase
(looking-at
"[[:upper:]]\\(\\s_\\|\\sw\\|'\\)*\\(\\.\\(\\s_\\|\\sw\\|'\\)+\\)*")
Expand Down