[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: kate syntax highlighting, end of context with indentation
From: Matthew Woehlke <matthew.woehlke () kitware ! com>
Date: 2014-05-23 15:33:50
Message-ID: 537F6A5E.2010109 () users ! sourceforge ! net
[Download RAW message or body]
On 2014-05-23 03:43, jules wrote:
> Le jeudi 22 mai 2014, 16:12:32 Matthew Woehlke a écrit :
>> On 2014-05-19 20:10, jules wrote:
>>> im trying to make a new syntax file for the "jade template engine", and i
>>> can't find a viable solution for the case where the end of scope is only
>>> indentation.
>>
>> Take a look at ReStructuredText, which has a similar need. The way I did
>> it is to use dynamic contexts that capture the indent level with
>> look-ahead rules that match the indent followed by any non-space
>> character to pop the context.
>
> what about "dynamic="true" keyword? in which case should we use?
Both a rule whose match expression is to be used in the child context,
and said (dynamic) context, must both use it. Again, see what rest.xml
is doing.
--
Matthew
_______________________________________________
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