Template Strings: fix double scanning of template literals

Also breaks scanning of { and } into a separate clause in the switch statement
to avoid having to conditional logic related to the stack on unrelated tokens.
This more closely reflects the situation in the master branch as well.

Fixes #1143
Closes gh-1145
2 files changed
tree: d37178dba5aed77b040bdfc6fa28f8a0590f0c4f
  1. bin/
  2. examples/
  3. test/
  4. tools/
  5. .eslintrc
  6. .gitignore
  7. .jscs.json
  8. .npmignore
  9. .travis.yml
  10. ChangeLog
  11. component.json
  12. esprima.js
  13. LICENSE.BSD
  14. package.json
  15. README.md
README.md

Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript). Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.

Features

Esprima serves as a building block for some JavaScript language tools, from code instrumentation to editor autocompletion.

Esprima runs on many popular web browsers, as well as other ECMAScript platforms such as Rhino and Node.js.

For more information, check the web site esprima.org.