Fixed: #2325 AS3 direct editation - allow single quoted attributes in XML

This commit is contained in:
Jindra Petřík
2024-09-26 19:47:46 +02:00
parent 4efa3191e7
commit ce2ac52ba1
6 changed files with 868 additions and 853 deletions

View File

@@ -113,7 +113,7 @@ TypeNameSpec = ".<" {Identifier} ">"
/* XML */
LetterColon = [:jletter] | ":"
XMLIdentifier = {Identifier} | {IdentifierNs}
XMLAttribute = " "* {XMLIdentifier} " "* "=" " "* \" {InputCharacter}* \" " "*
XMLAttribute = " "* {XMLIdentifier} " "* "=" " "* (\" {InputCharacter}* \" | "'" {InputCharacter}* "'") " "*
XMLBeginOneTag = "<" {XMLIdentifier} {XMLAttribute}* ">" | "<{" {XMLIdentifier} "}" {XMLAttribute}* " "* ">"
XMLBeginTag = "<" {XMLIdentifier} " " | "<{" {XMLIdentifier} "} "
XMLEndTag = "</" {XMLIdentifier} " "* ">" | "</{" {XMLIdentifier} "}" " "* ">"