Re: Configuring KDE-KATE to use other highlighting syntaxes

Katinka Mills <[email protected]>
Newsgroups gmane.comp.kde.devel.kate
Message-ID <[email protected]>
On Tue, 16 Jul 2002 06:31, Anders Lund wrote:
> On Monday 15 July 2002 19:54, Katinka Mills wrote:

> > Once I have it all worked out I will provide it, as more and more ppl are
> > moving from winblows to *nix for their programming platform :o)
>
> Thank you! Let us know if you need help/testing.
>
> -anders

Hi all,

I have a vision......

Ok dramatics over ;o)

I have a rough copy working, needs lots of work (comments are getting 
highlighted when they should not etc) but it is a start :o)

Ok now for a few Q's :

#1 is it possible to get KATE to read in some include files and take all the 
words in a certain position (column two ) after .def and before the = sign as 
user defined variables, also read in the uC define file and highlite their 
words as say chip defines etc. 

I have included a few examples of the file formats bellow.

Yes I am trying to turn KATE into an IDE (if we made it modular then we could 
have a C skin, C++ skin, AVR ASM skin .....) 



Regards,

Kat.

A user include file for user variables (first section is remaping chip 
defines)

.def	eedrd	=r0		;Data to be read from or written to the EEpro
.def	adchi	=r1		;ADC data result high bytem
.def	adclo	=r2		;ADC data result low byte
.def	adcnull	=r3		;ADC data result temp for null offset
.def	lo10sec	=r4		;Loop for 10 seconds counter
.def	save1	=r5		;Save for Temp
.def	save2	=r6		;Save for Sreg
.def	tcount	=r7		;Reg for where we are in time loop
		;
;***** Bit positions in the Status-register

.equ	RDR=0			;Receive data ready bit
.equ	TD=6			;Transmitting data (internal - read-only)
.equ	BUSY=7			;Busy-flag (internal - read-only)
.equ	TIME=1			;flag to indicate timer is in use by time routine


This is a section of a chip define file 

;***** I/O Register Definitions
.equ    SREG    =$3F
.equ    SPL     =$3D ; ICE only !!!!!!
.equ    GIMSK   =$3B
.equ    GIFR    =$3A
.equ    TIMSK   =$39
.equ    TIFR    =$38
.equ    MCUCR   =$35
.equ    MCUSR   =$34
.equ    TCCR0   =$33
.equ    TCNT0   =$32
.equ    OSCCAL  =$31
.equ    TCCR1   =$30
-- 
--------------------------------------------------------------------------------------------
K.A.Q. Electronics
Software and Electronic Engineering
Perth, Western Australia
Phone +61 (0) 419 923 731
--------------------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.