From kdevelop-bugs Thu Apr 29 03:27:34 2010 From: =?UTF-8?Q?Nicol=C3=A1s=20Alvarez=20?= Date: Thu, 29 Apr 2010 03:27:34 +0000 To: kdevelop-bugs Subject: [Bug 235685] CMake completion stops working properly after a Message-Id: <20100429032734.947DE3F1D5 () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=127251175308778 https://bugs.kde.org/show_bug.cgi?id=235685 --- Comment #1 from Nicolás Alvarez 2010-04-29 05:27:32 --- completionInvoked is doing its own half-assed attempt at parsing, searching for balanced parentheses. It would be hard to get that right in all cases, including parentheses in comments or string literals. The file was already tokenized, parsed, and converted into an AST. Why not use that instead of searching for tokens here again? I thought of looking at the ranges in CMakeFunctionDesc to know if the cursor is inside a function or not. But it looks like the CMakeFunctionDesc go away after initial parsing, or at least they aren't easily accessible from completionInvoked; and either way I now notice the fatal flaw in my plan: CMake files are *not* re-parsed during typing... -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs