Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed May 21, 2020
1 parent 588f856 commit 77dc8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class xml extends generic {
// xml attributes. Stage-2 Analyzing
function parseXmlAttributes(token){
// run the MicroTokenizer to identify the name=value match
return _microTokenizer(token, /\b([\w:-]+)(\s*=\s*)(['"][^'"]*['"]|[^'" \t]+)/gi, function(match){
return _microTokenizer(token, /\b([\w:-]+)(\s*=\s*)((['"]).*?\4|[^'" \t]+)/gi, function(match){
// attribute name | assignment operator | attribute value (string)
return [_token(match[1], 'x2'), _token(match[2], 'k3'), _token(match[3], 's0')];
});
Expand Down

0 comments on commit 77dc8d6

Please sign in to comment.