mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Allowing complex var names;
Removing the else if block in order to allow complex var names on the left hand of the assignment.
This commit is contained in:
parent
d58fe0585d
commit
0d7ff3ea4e
@ -27,9 +27,6 @@ AssignNode.prototype = {
|
||||
var value = this.getProperty('value');
|
||||
if (!varName) {
|
||||
this.addError('"var" attribute is required');
|
||||
} else if (!varNameRegExp.test(varName)) {
|
||||
this.addError('Invalid variable name of "' + varName + '"');
|
||||
varName = null;
|
||||
}
|
||||
if (!value) {
|
||||
this.addError('"value" attribute is required');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user