[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 235685] CMake completion stops working properly after a
From:       Nicolás Alvarez <nicolas.alvarez () gmail ! com>
Date:       2010-04-29 3:27:34
Message-ID: 20100429032734.947DE3F1D5 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=235685





--- Comment #1 from Nicolás Alvarez <nicolas alvarez gmail com>  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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic