Changeset 4260

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

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

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/RELEASE_NOTES.txt

    r4259 r4260  
    5555    the syntax coloring of arithmetic comparison operators. 
    5656 
    57     Added missing support for the syntax coloring of the built-in control  
    58     construct call/1 to the GtkSourceView 2.x text widget. 
     57    Added missing support for the syntax coloring of quoted atom escape  
     58    sequences and of the built-in control construct call/1 to the  
     59    GtkSourceView 2.x text widget. 
    5960 
    6061    Added missing support for the syntax coloring of variables, of quoted  
     
    6263    call Logtalk control construct {}/1, and of variables to the Nedit text  
    6364    editor. Corrected a bug with 0'Char constants and corrected some typos  
    64     in the support for the built-in predicates current_event/2,  
    65     implements_protocol/2-3, abolish_category/1. 
     65    in the support for the current_event/2, implements_protocol/2-3, and  
     66    abolish_category/1 built-in predicates. 
    6667 
    6768 
  • 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