commandbox-cfformat icon indicating copy to clipboard operation
commandbox-cfformat copied to clipboard

tag-check and single tags that are not self-closing

Open KrunchMuffin opened this issue 3 years ago • 3 comments

Is there a way to tell cfformat what tags are ok to not have a closing tag?

<cfswitch>
<cfcase>
<cfset>   << gives error that it doesn't match open cfcase.
</cfcase>
</cfswitch>

KrunchMuffin avatar Aug 25 '22 16:08 KrunchMuffin

Interesting, with your minimal example above, I don't get an error. Is there a larger context that is causing this?

jcberquist avatar Aug 25 '22 19:08 jcberquist

Sorry, was off work. I will get back. So you are saying that this functionality exists and works already?

KrunchMuffin avatar Aug 30 '22 20:08 KrunchMuffin

There is a list here data/tags.json that is used to determine whether a closing tag is required or not.

jcberquist avatar Aug 31 '22 17:08 jcberquist