In emacs, the corresponding do and endo statements

Hello,

I am looking at code in the Gauss programming language. In it, loops can start with do and end with endo? As I see, what endo matches are running. I want to see a code structure diagram. It would be great to highlight different blocks of code in different colors (for example, the main loop in blue, a nested loop in yellow, a loop nested inside, green, etc.).

a) How can I determine the appropriate do / endo pairs? b) Is the highlight color I described possible?

+4
source share
1 answer

Your description of what you want looks like you need the main mode for the language. There is a complete section here in the EamcsWiki. In addition, another discussion was held fooobar.com/questions/98030 / ... on the creation of the main mode. You can write a mode to meet your needs or make it easier, here is the gauss mode for Emacs :).

+3
source

Source: https://habr.com/ru/post/1346274/


All Articles