Skip to content

Commit

Permalink
Test that "let" followed by modulo is still treated as an identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Jan 31, 2021
1 parent d7b3a1c commit eeb9955
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
@@ -0,0 +1 @@
let %LHS;
@@ -0,0 +1,32 @@
{
"type": "File",
"start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},
"program": {
"type": "Program",
"start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},
"expression": {
"type": "BinaryExpression",
"start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
"left": {
"type": "Identifier",
"start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3},"identifierName":"let"},
"name": "let"
},
"operator": "%",
"right": {
"type": "Identifier",
"start":5,"end":8,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":8},"identifierName":"LHS"},
"name": "LHS"
}
}
}
],
"directives": []
}
}

0 comments on commit eeb9955

Please sign in to comment.