fix(graphite): fixed minor graphite lexer issue when nodes begin with octal syntax and end with dash identifier, fixes #6049#

This commit is contained in:
Torkel Ödegaard
2016-09-21 20:04:09 +02:00
parent 9e26a4cfcb
commit d65fbcbb42
4 changed files with 239 additions and 236 deletions

View File

@@ -100,10 +100,7 @@ Parser.prototype = {
},
metricExpression: function() {
if (!this.match('templateStart') &&
!this.match('identifier') &&
!this.match('number') &&
!this.match('{')) {
if (!this.match('templateStart') && !this.match('identifier') && !this.match('number') && !this.match('{')) {
return null;
}