[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kant
Subject:    [Kde-kant] questions about syntax highlighting (->scheme)
From:       Roland Pabel <pabel () tabu ! uni-bonn ! de>
Date:       2001-08-31 19:15:13
[Download RAW message or body]

Hi,
I posted this mail a few hours ago to kate-devel@lists.sourceforge.net but 
something went wrong with my subscription to that mailinglist, I never got 
anything useful back...is that list still active?
But since on the page http://kate.sourceforge.net/ this mailinglist is 
refered to as the kate-devel mailinglist, I send my mail again :

I've started writing a highlighting definition for Scheme (Revised5 Scheme). 
Anyone else working on this?
I've encountered some problems which I couldn't resolve :
(I am using Suse 7.2 with their KDE2.2 RPM's)

* weakDelimiter="-" does not work (or better : I can't figure out what 
exactly the correct function is ;-)
The example "font-family" for css in the howto is not shown as a complete 
keyword, just "font" is in bold face on my system. The same goes for any of 
my "-" seperated scheme keywords (eg. "list-ref", "list-tail",...)
On the other hand : In the string "data-read" (function written by me) the 
"read" is recognized ("read" is a valid keyword), but this should not be...

* items
I looked at other xml files, an everybody seems to enter the items with 
whitespaces (before an after name) : <item> name </item>
But the spaces are not important for keyword matching, so this is just style?!

* predicates & assignments
(most) predicate operators end with "?" and all assignment operators end with 
"!" (eg. "null?" or "set!"). First I wrote the question and exclamation 
marks in the list sections like <item> set! </item> but this was not 
recognized. Now I first look for "set" with keywords and then scan for "!" 
using DetectChar.
The problems are :
"set" is recognized without the exclamation mark what should not be...
"set===!" is also recognized. I've been trying to build a RegExpr that says 
"the first letter after the keyword has to be ! and nothing else, followed by 
a whitespace" but I was not successful on the first part...

* <Int attribute="3" context="1"/>
I copied this from another xml file. I don't know if this behaviour is 
intended, but in the variable name "Mask0" the "0" is higlighted because of 
this...

* HlC[Char|Hex|Oct|StringChar]
Could someone please explain me what exactly these match? (The howto just 
explains this for Hex, so I guess I understand what it means for Oct, but 
whats the difference between Char and StringChar?

sorry if everyone gets this mail twice...
Roland
-- 
ICQ UIN 49339118			Linux Counter #88774
GPG-Key 1024D/C969F3F2 2001-02-28 Roland Pabel <roland@pabel.net>
fingerprint = C8A7 BF6A 12FE CE55 724D  667B 4060 B228 C969 F3F2
_______________________________________________
Kde-kant mailing list
Kde-kant@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-kant

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic