diff options
author | aycabta <aycabta@gmail.com> | 2019-05-25 10:36:30 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-25 10:42:57 +0900 |
commit | 7686e33ee453d43210afcf90fef8fc613dede31c (patch) | |
tree | 80f260e0f6e9932ce625d054a6f96295e75f8db5 /test/ruby/test_require.rb | |
parent | 809ac9f2eaa0b9cf818f571f6febcee6785cc8e2 (diff) | |
download | ruby-7686e33ee453d43210afcf90fef8fc613dede31c.tar.gz |
JSON like label ends by differs from the start
pp Ripper.lex('{ "a": 3 }')
=>
[[[1, 0], :on_lbrace, "{", EXPR_BEG|EXPR_LABEL],
[[1, 1], :on_sp, " ", EXPR_BEG|EXPR_LABEL],
[[1, 2], :on_tstring_beg, "\"", EXPR_BEG|EXPR_LABEL],
[[1, 3], :on_tstring_content, "a", EXPR_BEG|EXPR_LABEL],
[[1, 4], :on_label_end, "\":", EXPR_BEG|EXPR_LABEL],
[[1, 6], :on_sp, " ", EXPR_BEG|EXPR_LABEL],
[[1, 7], :on_int, "3", EXPR_END],
[[1, 8], :on_sp, " ", EXPR_END],
[[1, 9], :on_rbrace, "}", EXPR_END]]
Diffstat (limited to 'test/ruby/test_require.rb')
0 files changed, 0 insertions, 0 deletions