[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dltk-dev] Code Assist in DLTK
- From: Sebastian Rheinnecker <rheinnec@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 25 Sep 2011 19:03:40 +0200
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=dRO3Z6l7xBXajSyqkxPCV12kFm8Hsqh/CLR0Pwp0wEo=; b=C31U6MywGecsQ24P0Jcj47hs4lRJf8yGh3/Fxj8qcOwL4EIYZgWhsar9kveFUezTbg hWr0l/tItoEdG60m71M9JLF69+QrHbGJyLI/eW34oAs0JBzi/zmowhLwMEMU91CsSsui Cuj1fOZIvHzqNmXY4abn2f5cmg0wvv2cMHIpo=
i implemented the example code assist that is given in the tutorial.
So far, it acts as expected, except one thing:
The background of the proposal window is black. Since the color of the
text is also black, you can't read unselected proposals. How can i fix
also one important question:
How can i implement an intelligent content assist system, which
provides proposals dependent on the position in the text?
I looked into some example codes from the ruby and python plugins. It
seems that they are using the AST to determine which proposals have to
be used. But: Most of the time, the AST is not complete while editing
a file, so this can't be the answer (if it is, please tell me how i
cope with incomplete ASTs). I use ANTLR as parser-generator. Is there
tutorial available on how to implement a code completion system using ANTLR?
I would be grateful for some links to tutorials on that subject in
general as well.
thanks in advance,