-
Notifications
You must be signed in to change notification settings - Fork 347
Parsing broken on quasi quotes #323
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
Comments
bump |
True. This should not be that hard:
|
Yes, but how? I am not familiar with Emacs's parsing stuff and especially how and where it used in |
You should look at Quasi-quotes are basically string literals so you need to put "|" char class on opening bracket and on the closing bracket. (Note additional issues with multiline. If you get the single line case working then we can convert it to multiline case later). Relevant documentation starts about here: https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-Class-Table.html |
But operator String must be started at pattern, matching to regexp |
More exactly the char The char (Note: some quasiquotes like e, d, t are actually Haskell so it might be good to use paired delimiters |
If I understand you correctly, you propose make Emacs consider any symbols between [1,2,3] and list comprehensions like [(i,j) | i <- [1,2], j <- [1..4]] become "strings" also, which is unacceptable. |
@s9gf4ult: This is not at all what I propose. Please have a look at documentation for variable |
@gracjan this looks irrelevant. |
haskell-indentation-mode still does not handle quasiquotes
|
for example, if I enter something like this
quasi quotes must be considered as strings, but they are considered as usual Haskell code. Maybe you can suggest how to solve it? I hope it is not very hard to solve this.
The text was updated successfully, but these errors were encountered: