Fix the current scope shown in the statusbar
commit19af3caa73a916d51ab9f151bc15015026dbd598
authorColomban Wendling <ban@herbesfolles.org>
Thu, 27 Oct 2016 15:33:58 +0000 (27 17:33 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Thu, 22 Dec 2016 12:52:12 +0000 (22 13:52 +0100)
tree331ed56b2cb7ff46a375fc6b3c769b3efd0a2c71
parent6f54690b0b94e8750dd769d3f0c90c7f7732b1a2
Fix the current scope shown in the statusbar

Since the Scintilla C++ lexer started to fold on `()` [1], the code
looking up the current scope is confused whenever the function
signature spans multiple lines.  Fix this by skipping fold levels that
correspond to parentheses.

Fixes #1279.

[1] https://sourceforge.net/p/scintilla/feature-requests/1138/
    imported in 24f91981c057a7e212c09da66fb974c3ccc85bd6
src/symbols.c