Skip to content

Commit

Permalink
add unit test case for #1 / GerHobbelt/jison#29 :: Supporting jison r…
Browse files Browse the repository at this point in the history
…eference location, token and index variables fails for negative indexes
  • Loading branch information
GerHobbelt committed Nov 10, 2017
1 parent 5b2259e commit 1337234
Show file tree
Hide file tree
Showing 2 changed files with 1,213 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fixtures/jison-actions/jison_0015.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// test jison negative index reference variables recognition:
// `$-1` is expected to be parsed as an *expression*, while the others
// should parse as identifiers...
$$ = {
val: $-1 + a.tx(`blub: ${$$-2} @ ${@@-3} vs. ${##-4}?`),
loc: @-5,
idx: #-6,
};
Loading

0 comments on commit 1337234

Please sign in to comment.