Semantic questions for my language mode

Isak Andersson <[email protected]> Tue, 10 Feb 2015 18:07:30 +0000
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Hello people!

I'm making my own mode for the Boo programming language, to replace the 
current one that existed because I wasn't quite happy with how the 
current one behaved.

I wanted to try and make one that integrates well with CEDET tools. So I 
was wondering a few things.

First, as auto indentation is quite the task since it pretty much 
requires some parsing to work reliably, I was wondering if it's possible 
to perhaps use the semantic parser to build an indentation system with 
and how one would go about doing so if it's possible.

Second, I was hoping it would be possible to somehow utilize semantic 
for building the syntax highlighting system as well. For example 
highlighting things based on what kind of type they are (function or 
variable). Boo also allows you to add new keywords by using macros, so 
if I could parse the project and detect macros and start highlighting 
macro invokations as keywords automatically (rather than manually like 
you do with the current boo-mode) that would be super swell. Would it be 
possible to do this?

Thanks!

Best regards,
Isak Andersson

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/