edn/data/languages/boo/highlight.xml

53 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<EdnLang version="0.1" lang="Boulou log">
<ext>.*\.boo</ext>
<pass1><!-- multiline section & parse all file (now) and when modification retrive previous modification -->
<rule name="comment ##">
<color>SYNTAX_ERROR</color>
<regex>##.*?$</regex>
</rule>
<rule name="comment #">
<color>comment</color>
<regex>#.*?$</regex>
</rule>
<rule name="notes ... ">
<color>preprocesseur</color>
<regex>(NOTE|TODO) : .*?$</regex>
</rule>
<rule name="doubleQuteText">
<color>doubleQuoteText</color>
<regex>&quot;(.|\\[\\&quot;])*?$</regex>
</rule>
<rule name="simpleQuteText">
<color>doubleQuoteText</color>
<regex>\b&apos;(.|\\[\\&apos;])*?$</regex>
</rule>
</pass1>
<pass2> <!-- Parse on display data ==> nor regenerate every display but every time modification apear -->
<rule name="pourcentage OK">
<color>TestResultOK</color>
<regex>100%</regex>
</rule>
<rule name="pourcentage">
<color>number</color>
<regex>[0-9]*%</regex>
</rule>
<rule name="Résultat OK">
<color>TestResultOK</color>
<regex>\[( )*(OK|Ok|ok)( )*\]</regex>
</rule>
<rule name="resultat en erreur">
<color>TestResultERROR</color>
<regex>\[(ERREUR|Erreur|erreur)\]</regex>
</rule>
<rule name="resultat vide">
<color>number</color>
<regex>\[( )*\]</regex>
</rule>
<rule name="notes ... ">
<color>macro</color>
<regex>==&gt;</regex>
</rule>
</pass2>
</EdnLang>