Show
Ignore:
Timestamp:
05/04/08 05:32:13 (5 months ago)
Author:
pmoura
Message:

Added missing support for the syntax coloring of the scope operator ::/2 to the Kate text editor and to the Pygments syntax highlighter.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wenv/kate/logtalk.xml

    r4240 r4246  
    22<!DOCTYPE language SYSTEM "language.dtd"> 
    33 
    4 <language name="Logtalk" version="2.0" kateversion="2.4" section="Sources" extensions="*.lgt;*.config" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Artistic License 2.0"> 
     4<language name="Logtalk" version="2.1" kateversion="2.4" section="Sources" extensions="*.lgt;*.config" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Artistic License 2.0"> 
    55 
    66    <highlighting> 
     
    168168            <context name = "entityrelations" attribute = "Normal" lineEndContext = "#stay" > 
    169169                <RegExpr String = "\b(complements|extends|i(nstantiates|mp(lements|orts))|specializes)(?=[(])" attribute = "Directive" context = "#stay" /> 
     170                <!-- Variables --> 
     171                <RegExpr String = "\b[A-Z_]\w*" attribute = "Variable" context = "#stay" /> 
     172                <!-- Comments --> 
     173                <DetectChar char = "%" attribute = "Comment" context = "single line comment" /> 
     174                <Detect2Chars char = "/" char1 = "*" attribute = "Comment" context = "multiline comment" beginRegion = "Comment" /> 
     175                <!-- Strings and quoted atoms --> 
     176                <DetectChar char = "&quot;" attribute = "String" context = "string" /> 
     177                <DetectChar char = "'" attribute = "String" context = "atom" /> 
     178                <!-- Numbers --> 
     179                <RegExpr String = "0'." attribute = "Number" context = "#stay" /> 
     180                <RegExpr String = "0b[0-1]+" attribute = "Number" context = "#stay" /> 
     181                <RegExpr String = "0o[0-7]+" attribute = "Number" context = "#stay" /> 
     182                <RegExpr String = "0x[0-9a-fA-F]+" attribute = "Number" context = "#stay" /> 
     183                <RegExpr String = "\d+(\.\d+)?([eE]([-+])?\d+)?" attribute = "Number" context = "#stay" /> 
     184                <!-- Scope operator --> 
     185                <Detect2Chars char = ":" char1 = ":" attribute = "Operator" context = "#stay" /> 
     186                <!-- End of entity-opening directive --> 
    170187                <Detect2Chars attribute = "Normal" context = "normal" char = ")" char1 = "." /> 
    171188            </context>