fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Making exceptions for certain elements that aren't supposed to close #1221

Closed kjohnson0451 closed 2 years ago

kjohnson0451 commented 2 years ago

I'm using an in-house template engine based on HTML::Template

I hesitate to request full support for this syntax, since probably not much more than a dozen people use it, but I'd like some direction on how to accommodate for some of the weirdness that shows up when I edit these template files. To be clear, I'm in HTML mode.

For instance, isn't supposed to have closing . So I run into the problem of

<TMPL_VAR NAME="what">
    <p>nooo I don't want to indent this</p>

Where's the first place I should look inside the web-mode.el file to make an exception for ?

EDIT: Just noticed the line (defun web-mode-element-close () so I can start there.

fxbois commented 2 years ago

done with last commit