Skip to content

Commit

Permalink
Back out the structure literal syntax separation.
Browse files Browse the repository at this point in the history
It breaks syntax highlighting for string interpolation, and I spent like
2 hours trying to figure out why adding `leanStringInterpolation` to the
`containedin=ALLBUT` doesn't fix it, but it doesn't.

We don't need this anymore for indent, so, go away.
  • Loading branch information
Julian committed Jan 11, 2025
1 parent f0b434e commit 1da3354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/lean.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ syn region leanEncl matchgroup=leanDelim start="#\[" end="\]" contains=TOP conta
syn region leanEncl matchgroup=leanDelim start="(" end=")" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend
syn region leanEncl matchgroup=leanDelim start="\[" end="\]" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend
syn region leanEncl matchgroup=leanDelim start="" end="" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend
syn region leanEncl matchgroup=leanDelim start="" end="" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend

syn region leanAnonymousLiteral matchgroup=leanDelim start="" end="" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend
syn region leanStructureLiteral matchgroup=leanDelim start="{" end="}" contains=TOP containedin=ALLBUT,leanBlockComment,leanComment,leanFrenchQuote keepend

" FIXME(gabriel): distinguish backquotes in notations from names
" syn region leanNotation start=+`+ end=+`+
Expand Down

0 comments on commit 1da3354

Please sign in to comment.