Skip to content

Commit fa8e059

Browse files
pkozlowski-opensourcemhevery
authored andcommitted
refacor(lexer): remove unused ~/ operator
Closes angular#1509
1 parent 8e18d6c commit fa8e059

File tree

1 file changed

+1
-5
lines changed
  • modules/angular2/src/change_detection/parser

1 file changed

+1
-5
lines changed

modules/angular2/src/change_detection/parser/lexer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ const $a = 97, $b = 98, $c = 99, $d = 100, $e = 101, $f = 102, $g = 103,
179179
export const $LBRACE = 123;
180180
export const $BAR = 124;
181181
export const $RBRACE = 125;
182-
const $TILDE = 126;
183182
const $NBSP = 160;
184183

185184

@@ -275,8 +274,6 @@ class _Scanner {
275274
return this.scanComplexOperator(start, $AMPERSAND, '&', '&');
276275
case $BAR:
277276
return this.scanComplexOperator(start, $BAR, '|', '|');
278-
case $TILDE:
279-
return this.scanComplexOperator(start, $SLASH, '~', '/');
280277
case $NBSP:
281278
while (isWhitespace(this.peek)) this.advance();
282279
return this.scanToken();
@@ -455,7 +452,6 @@ var OPERATORS = SetWrapper.createFromList([
455452
'-',
456453
'*',
457454
'/',
458-
'~/',
459455
'%',
460456
'^',
461457
'=',
@@ -482,5 +478,5 @@ var KEYWORDS = SetWrapper.createFromList([
482478
'null',
483479
'undefined',
484480
'true',
485-
'false',
481+
'false'
486482
]);

0 commit comments

Comments
 (0)