reddit / emacs

Web Mode interpolation indentation - is it possible?

steinpowaaa · 2022-02-10 11:53
Hi, is it possible that code inside \` ticks to be interpolated like other code? I use web mode for javascript editing and everything has normal indentation except interpolated strings.
naokotani · 2022-02-10 12:48
I use mmm-mode to parse graphql syntax in jsx files in template literals. It ruins a secondary major mode bar based on a regex expression so like after graphql(` do graphql mode until `
naokotani · 2022-02-10 12:50
I guess I needed to escape the backticks, but you get the idea.