erikrose / rust-bbedit-plugin

A Rust language module for BBEdit
6 stars 1 forks source link

Detect nested functions #2

Open erikrose opened 12 years ago

erikrose commented 12 years ago

Right now, we don't. Sadness.

erikrose commented 12 years ago

And it looks like we can't do it with just plists. Double sadness.

erikrose commented 12 years ago

Had a look at the BBEdit SDK. Basically, we'd have to write a simplified Rust parser (strings, comments, functions, objects) in C. I'll see how much the lack of nesting bothers me, as I'd rather be writing Rust than old Toolbox-style C code. On the plus side, it's nice/scary to see how little that API has moved since I last touched it; there are still Str255s and NewHandle() calls blowing around in there.