atg / chocolat-public

Public bug tracker for the private chocolat project
http://chocolatapp.com
182 stars 4 forks source link

[Semantic highlighting] #888

Open CarterA opened 12 years ago

CarterA commented 12 years ago

The completions system is entirely disconnected from the language syntax system, meaning that data is duplicated between them. For instance, the C truffle has a list of stdlib functions that is also present in the completions file, albeit in a different format (regex vs. JSON).

I'm not sure what to do to fix this, but making completions less disconnected from everything else would definitely be a start. There could also be a generic file location in truffles that could be accessed by both the completion engine and the syntax definitions, where you could define arrays of symbols.

atg commented 12 years ago

The solution to this, I think, is "semantic highlighting". Allow the highlighting system to access the indexing system and highlight words from it. Xcode does this.

The difficulty is making it fast enough.