Changeset 4253

Show
Ignore:
Timestamp:
05/05/08 13:56:20 (2 months ago)
Author:
pmoura
Message:
Corrected a bug with 0'Char constants and with octal and hexadecimal escape sequences in the Highlight package.
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/RELEASE_NOTES.txt

    r4252 r4253  
    3535 
    3636    Added missing support for the syntax coloring of the external call  
    37     Logtalk control construct, {}/1, to the Highlight package. 
     37    Logtalk control construct, {}/1, to the Highlight package. Corrected  
     38    a bug with 0'Char constants and with octal and hexadecimal escape  
     39    sequences. 
    3840 
    3941    Added missing support for the syntax coloring of the external call  
  • trunk/wenv/highlight/lgt.lang

    r4243 r4253  
    55#  Author: Paulo Moura 
    66#    Mail: pmoura@logtalk.org 
    7 #    Date: 31.03.08 
    8 # Version: 1.0 
     7#    Date: 05.05.08 
     8# Version: 1.01 
    99# ------------------------------------------ 
    1010# This file is a part of highlight, a free source code converter released under the GPL. 
     
    120120 
    121121# numbers 
    122 $KEYWORDS(kwc)=regex((\b0(').|0''|0'"|0b[0-1]+|0o[0-7]+|0x\p{XDigit}+|\d+(\.\d+)?([eE]([-+])?\d+)?), 1) 
     122$KEYWORDS(kwc)=regex((0['].), 1) 
     123$KEYWORDS(kwc)=regex((0b[0-1]+|0o[0-7]+|0x\p{XDigit}+), 1) 
     124$KEYWORDS(kwc)=regex((\d+(\.\d+)?([eE]([-+])?\d+)?), 1) 
    123125 
    124126$SL_COMMENT=% 
     
    130132$IGNORECASE=false 
    131133 
    132 $ESCCHAR=regex(\\\d{3}|\\x\p{XDigit}{2}|\\[ntvbrfa\\\?'"]) 
     134$ESCCHAR=regex(\\[0-7]+\\|\\x\p{XDigit}+\\|\\[abfnrtv\\'"]) 
    133135 
    134136$SYMBOLS= ( ) [ ] { } , ; : & | < > !  = / *  + -