help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] (no subject)


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] (no subject)
Date: Wed, 31 Oct 2001 08:41:41 +0100

Hi

        They are in src directory, java_scanner.ll and cpp_scanner.ll; they are
flex files, so you have to know flex.

For cpp they are something like this

keyword1
(asm|auto|break|case|catch|class|const|const_cast|continue|default)...

keyword
({keyword1}|{keyword2}|{keyword3}|{keyword4}|{keyword5}|{keyword6})

<INITIAL>{keyword} { generateKeyWord( yytext ) ; }

and for Java they are the parts:

...
<INITIAL>this |
<INITIAL>transient |
<INITIAL>try |
<INITIAL>volatile |
<INITIAL>while  { generateKeyWord( yytext ) ; }

hope this helps

cheers
        Lorenzo

senthil kumar ramanathan wrote:
> 
> hi,
> 
>   i need the code for scanning function which identifies the keywords so
> that they could be highlighted

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD student in Computer Science                    |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4796741, Fax +39 055 4796730           |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://w3.newnet.it/bettini     |
|  Mail             : address@hidden            |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://w3.newnet.it/bettini/purple     Cover Band  |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
+-----------------------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]