Changeset 4260 for trunk/wenv

Show
Ignore:
Timestamp:
05/10/08 09:47:44 (8 months ago)
Author:
pmoura
Message:

Added missing support for the syntax coloring of quoted atom escape sequences to the GtkSourceView? 2.x text widget.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wenv/gtksourceview2/logtalk.lang

    r4239 r4260  
    4141        <style id="built-in" _name="Keyword" map-to="def:keyword"/> 
    4242        <style id="variable" _name="Variable" map-to="def:identifier"/> 
     43        <style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/> 
    4344    </styles> 
    4445 
    4546    <definitions> 
     47 
     48        <define-regex id="escaped-character" extended="true"> 
     49            \\([\\abfnrtv"\']|(x[a-fA-F0-9]+|[0-7]+)\\) 
     50        </define-regex> 
    4651 
    4752        <context id="string" style-ref="string" end-at-line-end="true"> 
     
    5358            <start>'</start> 
    5459            <end>'</end> 
     60            <include> 
     61                <context id="escaped-character" style-ref="escaped-character"> 
     62                    <match>\%{escaped-character}</match> 
     63                </context> 
     64            </include> 
    5565        </context> 
    5666