Victor D. wrote: > sorry to interfere, i might be naive, but i have a different view here > i would advise for an independent from-scratch parser, optimized for a dev > tool, for writing code, which is a bit different than for the compiler. the > parser has to be permissive, it has to figure out the best it can incomplete > and illegal structures, so that the code completion/highlight doesn't brake > all the time while you write.
This type of feature might also be useful in a compiler, so that it can carry on compiling after an error without generating 100s of spurious 'mismatched parens' type errors. If it doesn't distort the job of libvala too much, maybe it could be extended to cover the (modest) additional requirements of a syntax highlighter, but that means someone taking the time to do patches and get them approved and integrated. I think that a flag that controls whether or not all comments are stored in the AST would not create any significant overhead when turned off for compiling. Jim -- Jim Peters (_)/=\~/_(_) j...@uazu.net (_) /=\ ~/_ (_) UazĂș (_) /=\ ~/_ (_) http:// in Peru (_) ____ /=\ ____ ~/_ ____ (_) uazu.net _______________________________________________ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list