From: Sylvain L. <syl...@us...> - 2018-11-19 10:00:49
|
Edit : something like : ~~~ regexp -- {([\w]+:)?[\w]+} $tag tag ~~~ could be better, since the ":" is supposed to appear only if there is a prefix. Best regards, Sylvain --- ** [tickets:#200] xml::electricClosingAngleBracket : two issues** **Status:** open **Created:** Mon Nov 19, 2018 08:57 AM UTC by Sylvain Loiseau **Last Updated:** Mon Nov 19, 2018 08:57 AM UTC **Owner:** nobody In XML mode, xml::electricClosingAngleBracket offers to insert the end-tag of an XML element while typing the closing ">" of the start-tag. I have noted two issues: - with prefixed element name (QName), for instance "xsl:param", only "xsl" is inserted in the end tag. It is due to the regexp used for matching the start tag: `regexp -- {[\w]+} $tag tag` l. 511 of Modes/XML Modes/xmlMode.tcl I think it could be turned into: `regexp -- {[\w]*:?[\w]+} $tag tag` - second ; when typing a start-tag at the very end of a document (the cursor is at the last position), the closing tag is not inserted. I havn't been able to trace the issue. It may be a common situation to enter the root element of a document and to expect it to be closed also. Best, Sylvain --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |