| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language [ |
| 3 |
<!-- same as logfile-advanced.xml --> |
| 4 |
<!ENTITY critical "crit|critical|fatal|QFATAL"> |
| 5 |
<!ENTITY debug "debug|QDEBUG"> |
| 6 |
<!ENTITY error "err|error|fail|failure|QCRITICAL"> |
| 7 |
<!ENTITY info "info|information|QINFO"> |
| 8 |
<!ENTITY warn "warn|warning|QWARN"> |
| 9 |
<!ENTITY firstchars "cdefiqw"> |
| 10 |
<!ENTITY search "^([^&firstchars;]*+((?!\b(&critical;|&debug;|&error;|&info;|&warn;)\b)[&firstchars;])?)*+"> |
| 11 |
]> |
| 12 |
<language name="Log File (simplified)" section="Other" version="2" kateversion="5.62" extensions="*.log" priority="5" author="Jonathan Poelen ([email protected])" license="MIT"> |
| 13 |
<highlighting> |
| 14 |
|
| 15 |
<contexts> |
| 16 |
<context name="Start" lineEndContext="#stay" attribute="Normal"> |
| 17 |
<RegExpr String="&search;\b(&info;)\b.*" attribute="Information" insensitive="1" column="0"/> |
| 18 |
<RegExpr String="&search;\b(&debug;)\b.*" attribute="Debug" insensitive="1" column="0"/> |
| 19 |
<RegExpr String="&search;\b(&warn;)\b.*" attribute="Warning" insensitive="1" column="0"/> |
| 20 |
<RegExpr String="&search;\b(&error;)\b.*" attribute="Error" insensitive="1" column="0"/> |
| 21 |
<RegExpr String="&search;\b(&critical;)\b.*" attribute="Critical" insensitive="1" column="0"/> |
| 22 |
<RegExpr String=".*" attribute="Normal"/> |
| 23 |
</context> |
| 24 |
</contexts> |
| 25 |
|
| 26 |
<itemDatas> |
| 27 |
<itemData name="Normal" defStyleNum="dsNormal"/> |
| 28 |
<itemData name="Information" defStyleNum="dsPreprocessor"/> |
| 29 |
<itemData name="Warning" defStyleNum="dsInformation"/> |
| 30 |
<itemData name="Error" defStyleNum="dsError" underline="0"/> |
| 31 |
<itemData name="Critical" defStyleNum="dsAlert"/> |
| 32 |
<itemData name="Debug" defStyleNum="dsDataType"/> |
| 33 |
</itemDatas> |
| 34 |
</highlighting> |
| 35 |
</language> |
| 36 |
<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> |