Files
swift-mirror/utils/sil-mode.el
Michael Gottesman 694c1982bd [sil-mode.el] Improve handling of box types by sil-mode-display-function-cfg
Specifically, I changed how sil-mode-display-function-cfg searches for the
start/end of the SIL function body where the current point is. Previously, we
just searched for the exact strings "{" and "}" backwards and forwards
respectively. That was insufficient in the context of box types that use those
characters.

Instead with this change, we convert the aforementioned static search to a regex
search. Our regex match "{$" for the beginning of the SIL function and "^} //
end sil function '" or "^}" which I think will generally work to get the correct
body. NOTE: We first check for the end sil function variant.
2020-12-20 16:13:33 -08:00

13 KiB