javascript: Properly handle nested unknown blocks
commit5a1a22d9306fdf0e4352127b12cafd8555ea55b8
authorColomban Wendling <ban@herbesfolles.org>
Wed, 19 Nov 2014 22:39:15 +0000 (19 23:39 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 24 Nov 2014 01:41:57 +0000 (24 02:41 +0100)
treec0ee0e9e165c62275a04c9f700166e86eb164753
parentf158f5d362404a3bec09c8841537e981ade5de2f
javascript: Properly handle nested unknown blocks

Properly match open curly braces when parsing a statement not to
possibly get fooled by unexpected nested blocks, e.g. after a
`switch`'s `case` or a label.

This mostly reverts c54c3ad5e815d16e3b48f3c477465627808aadee and
replaces it with a more correct and complete solution.
tagmanager/ctags/js.c
tests/ctags/Makefile.am
tests/ctags/js-unknown-construct-nesting.js [new file with mode: 0644]
tests/ctags/js-unknown-construct-nesting.js.tags [new file with mode: 0644]