From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Elliston To: Jason Andrews Cc: "sourcenav@sourceware.cygnus.com" Subject: Re: syntax highlighting Date: Wed, 11 Oct 2000 11:23:00 -0000 Message-id: References: <39E3C8A4.1EFAA222@simpod.com> X-SW-Source: 2000-q4/msg00065.html Hi, I have integrated a new parser with sorucenav and I am looking for documentation on syntax highlighting. The syntax highlighters have specific hooks into the `hyper' interpreter. For an example, go to the `hyper' source directory and grep for `ch_highlight' in highlight.c. The idea is that an init function is called once to initialise things and then an entry point is called periodically whenever S-N's editor wants a memory buffer (usually the file currently loaded into the editor) to be scanned for highlighting information. Such scanners are usually written using Flex. Any advice on where to find it or which parser to look at as an example is appreciated. Take a look at hyper/*.l. Yes, it's not as clean as it ought to be. Highlighters should be loaded into the interpreter dynamically. Cheers, Ben