From: Bernard D. <bde...@us...> - 2018-12-10 15:18:15
|
Both issues are fixed now. Regarding the first one, thanks for the regexp. One can even write just ``` regexp -- {(\w+:)?\w+} $tag tag ``` The second issue was a core bug (an index out of bounds which caused Cocoa to raise an exception and stop processing). Changes committed to the repository ([rev. 1577](https://sourceforge.net/p/alphacocoa/code/1577/)). The core must be rebuilt (for the second issue only). --- ** [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 10:00 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. |