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

List:       kwrite-devel
Subject:    Kate - Syntax Highlighting - Keywords- and RegExpr-Rules
From:       Sascha Roitz <roitz () web ! de>
Date:       2014-06-20 22:28:23
Message-ID: 53A4B587.3040301 () web ! de
[Download RAW message or body]

Hi!

Currently I use Kate 3.11.5 (KDE 4.11.5).
I write a hightling syntax file for GNU Smalltalk.

Insofar as it works well.

But i have one conflict with 2 rules.

The first rule is a simpel keyword-rule. it makes a highlighting for the 
keywords (self, super, nil..etc). fine!

<keyword attribute="Keyword" context="#stay" String="keywords" />

The second rule is a RegExpr-Rule. I want a highlighting for 
parameter-objects. The rule look for the Character ':' and behind it is 
the desired object.

<RegExpr attribute="VariableOrObject" context="#stay" 
String="([\:][\s|\t]*[a-zA-Z0-9_]+)+[\s|\t]*"/>

problem:
The second Rule overwrite every keyword behind the Character ':'. But I 
do not want that it will be overwritten.
a change the order of the rules does not work.

What is the solution? Can you help me?

thx
Sascha
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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