Closed simonjantsch closed 8 years ago
Do you mean that when you hit \[
it inserts \[\]
instead of \[]
? If so, then you should share result of SPC h d s
and also check that you don't have any funky settings for smartparens.
What I mean is, if i write [x,y,z] -> [x] then all bracket signs in the expression but the first one will be highlighted
Because of unmatched parentheses? I can't reproduce this. Works fine here.
The same, works fine for me
Hm ok, im not sure why im having this but I'm using spacemacs out of the box pretty much. I am attaching a screenshot with the the file I was editing.
Could you, please, share your .spacemacs
so I can check it out?
It would also be nice to share the problematic part of your file (if the content is not sensible). It may help to reproduce :relaxed:
Thanks for trying to solve the problem. I'm attaching my .spacemacs file .spacemacs.txt
Have terrible internet connection right now, so can't really reproduce it (MELPA is not available!). But when I think about your problem I remember having something very similar in JSX files. I haven't hunted that problem, that's why I haven't reported it yet.
In any case, with my setup I don't see this problem in haskell file. Will try your spacemacs file later when I have better connection.
Still can't reproduce. Can you verify that it still happen with latest packages and Spacemacs?
I have not had this problem for a while now, so I'm closing the thread.
In haskell it is common to use anonymous function that are declared like this : \x -> x+x When specifying a function over for list or tuple type, one would write: (x,y) -> foo or [x,y,z] -> bar When doing this however the bracket matching function of spacemacs escapes the first bracket sign after \ and thus all brackets in the document that come after are highlighted.