Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/logcat.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | 3 | [ | ||
4 | <!ENTITY datetime "((.\[)?(\d{1,2};){2}\d{1,3}m\s*)?((\d{4}\-)?\d{2}\-\d{2}\s\d{2}(:\d{2}){2}\.\d{3,6}(\s[\-\+]\d{4})?|\d+\.\d{3,6}):?"> | 4 | <!ENTITY datetime "((.\[)?(\d{1,2};){2}\d{1,3}m\s*)?((\d{4}\-)?\d{2}\-\d{2}\s\d{2}(:\d{2}){2}\.\d{3,6}(\s[\-\+]\d{4})?|\d+\.\d{3,6}):?"> | ||
5 | <!ENTITY priority_tag "([/\s][^:\(]*(\([^\)]+\))?:|\([^\)]+\):?)"> <!-- Tag/PID/Threads --> | 5 | <!ENTITY priority_tag "([/\s][^:\(]*(\([^\)]+\))?:|\([^\)]+\):?)"> <!-- Tag/PID/Threads --> | ||
6 | <!ENTITY delim "[/\(\s]"> <!-- Delimiter between priority and tag --> | 6 | <!ENTITY delim "[/\(\s]"> <!-- Delimiter between priority and tag --> | ||
7 | ]> | 7 | ]> | ||
8 | 8 | | |||
9 | <!-- | 9 | <!-- | ||
10 | Syntax Highlighting Definition of Logcat, for the KDE's KSyntaxHighlighting Framework | 10 | Syntax Highlighting Definition of Logcat, for the KDE's KSyntaxHighlighting Framework | ||
11 | ========================================================================================== | 11 | ========================================================================================== | ||
12 | This file is part of the KDE's KSyntaxHighlighting framework. | 12 | This file is part of the KDE's KSyntaxHighlighting framework. | ||
13 | 13 | | |||
14 | Copyright (c) 2018 Nibaldo González S. (nibgonz@gmail.com) | 14 | Copyright (c) 2018-2019 Nibaldo González S. (nibgonz@gmail.com) | ||
15 | 15 | | |||
16 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | 16 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | ||
17 | software and associated documentation files (the "Software"), to deal in the Software | 17 | software and associated documentation files (the "Software"), to deal in the Software | ||
18 | without restriction, including without limitation the rights to use, copy, modify, merge, | 18 | without restriction, including without limitation the rights to use, copy, modify, merge, | ||
19 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | 19 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | ||
20 | persons to whom the Software is furnished to do so, subject to the following conditions: | 20 | persons to whom the Software is furnished to do so, subject to the following conditions: | ||
21 | 21 | | |||
22 | The above copyright notice and this permission notice shall be included | 22 | The above copyright notice and this permission notice shall be included | ||
23 | in all copies or substantial portions of the Software. | 23 | in all copies or substantial portions of the Software. | ||
24 | 24 | | |||
25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
26 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | 26 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
27 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | 27 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
28 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | 28 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
29 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 29 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
30 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 30 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
31 | ========================================================================================== | 31 | ========================================================================================== | ||
32 | | ||||
33 | Last update: March 07, 2019 (v3) | ||||
32 | --> | 34 | --> | ||
33 | 35 | | |||
34 | <language name="Logcat" | 36 | <language name="Logcat" | ||
35 | version="2" | 37 | version="3" | ||
36 | kateversion="5.0" | 38 | kateversion="5.0" | ||
37 | section="Other" | 39 | section="Other" | ||
38 | extensions="*.logcat" | 40 | extensions="*.logcat" | ||
39 | mimetype="text/x-logcat" | 41 | mimetype="text/x-logcat" | ||
40 | priority="5" | 42 | priority="5" | ||
41 | author="Nibaldo González (nibgonz@gmail.com)" | 43 | author="Nibaldo González (nibgonz@gmail.com)" | ||
42 | license="MIT"> | 44 | license="MIT"> | ||
43 | 45 | | |||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 160 | <context name="EmptyLine" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop"> | |||
164 | <!-- NOTE: Use "^\s*" with lookAhead, not firstNonSpace --> | 166 | <!-- NOTE: Use "^\s*" with lookAhead, not firstNonSpace --> | ||
165 | <RegExpr context="#pop#pop" attribute="Normal Text" String="\s*[VDIWASEF\?]&priority_tag;" column="0" lookAhead="true" /> | 167 | <RegExpr context="#pop#pop" attribute="Normal Text" String="\s*[VDIWASEF\?]&priority_tag;" column="0" lookAhead="true" /> | ||
166 | <DetectSpaces /> | 168 | <DetectSpaces /> | ||
167 | </context> | 169 | </context> | ||
168 | 170 | | |||
169 | </contexts> | 171 | </contexts> | ||
170 | 172 | | |||
171 | <itemDatas> | 173 | <itemDatas> | ||
174 | <!-- NOTE: [07-Mar-19, KF5.55.0] The use of underline="0", bold="0" and italic="0" | ||||
175 | does not work, therefore, some styles have been changed (see bug: #143399). | ||||
176 | Check this when the bug is corrected. --> | ||||
172 | <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> | 177 | <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> | ||
173 | <itemData name="Comment" defStyleNum="dsComment" italic="1" /> | 178 | <itemData name="Comment" defStyleNum="dsComment" italic="1" /> | ||
174 | <itemData name="DateTime" defStyleNum="dsComment" italic="0" underline="0" spellChecking="false" /> | 179 | <itemData name="DateTime" defStyleNum="dsComment" italic="0" underline="0" spellChecking="false" /> | ||
175 | 180 | | |||
176 | <itemData name="Verbose Tag" defStyleNum="dsNormal" bold="1" /> | 181 | <itemData name="Verbose Tag" defStyleNum="dsNormal" bold="1" /> | ||
177 | <itemData name="Verbose Message" defStyleNum="dsNormal" bold="0" /> | 182 | <itemData name="Verbose Message" defStyleNum="dsNormal" bold="0" /> | ||
178 | <itemData name="Debug Tag" defStyleNum="dsAttribute" bold="1" /> | 183 | <itemData name="Debug Tag" defStyleNum="dsAttribute" bold="1" /> | ||
179 | <itemData name="Debug Message" defStyleNum="dsAttribute" bold="0" /> | 184 | <itemData name="Debug Message" defStyleNum="dsAttribute" bold="0" /> | ||
180 | <itemData name="Info Tag" defStyleNum="dsPreprocessor" bold="1" /> | 185 | <!-- Info: dsProcessor --> | ||
181 | <itemData name="Info Message" defStyleNum="dsPreprocessor" bold="0" /> | 186 | <itemData name="Info Tag" defStyleNum="dsOthers" bold="1" /> | ||
187 | <itemData name="Info Message" defStyleNum="dsOthers" bold="0" /> | ||||
182 | <itemData name="Warning Tag" defStyleNum="dsInformation" bold="1" /> | 188 | <itemData name="Warning Tag" defStyleNum="dsInformation" bold="1" /> | ||
183 | <itemData name="Warning Message" defStyleNum="dsInformation" bold="0" /> | 189 | <itemData name="Warning Message" defStyleNum="dsInformation" bold="0" /> | ||
184 | <itemData name="Assert Tag" defStyleNum="dsChar" bold="1" /> | 190 | <itemData name="Assert Tag" defStyleNum="dsChar" bold="1" /> | ||
185 | <itemData name="Assert Message" defStyleNum="dsChar" bold="0" /> | 191 | <itemData name="Assert Message" defStyleNum="dsChar" bold="0" /> | ||
186 | <itemData name="Silent Tag" defStyleNum="dsBuiltIn" bold="1" /> | 192 | <!-- Silent: dsBuiltIn --> | ||
187 | <itemData name="Silent Message" defStyleNum="dsBuiltIn" bold="0" /> | 193 | <itemData name="Silent Tag" defStyleNum="dsAnnotation" bold="1" /> | ||
188 | <itemData name="Error Tag" defStyleNum="dsError" bold="1" underline="0" /> | 194 | <itemData name="Silent Message" defStyleNum="dsAnnotation" bold="0" /> | ||
189 | <itemData name="Error Message" defStyleNum="dsError" bold="0" underline="0" /> | 195 | <!-- Error: dsError --> | ||
196 | <itemData name="Error Tag" defStyleNum="dsWarning" bold="1" underline="0" /> | ||||
197 | <itemData name="Error Message" defStyleNum="dsWarning" bold="0" underline="0" /> | ||||
190 | <itemData name="Fatal" defStyleNum="dsAlert" bold="1" /> | 198 | <itemData name="Fatal" defStyleNum="dsAlert" bold="1" /> | ||
191 | </itemDatas> | 199 | </itemDatas> | ||
192 | 200 | | |||
193 | </highlighting> | 201 | </highlighting> | ||
194 | 202 | | |||
195 | <general> | 203 | <general> | ||
196 | <comments> | 204 | <comments> | ||
197 | <comment name="singleLine" start="#" /> | 205 | <comment name="singleLine" start="#" /> | ||
198 | </comments> | 206 | </comments> | ||
199 | </general> | 207 | </general> | ||
200 | 208 | | |||
201 | </language> | 209 | </language> | ||
202 | <!-- kate: replace-tabs off; remove-trailing-spaces mod; dynamic-word-wrap off; --> | 210 | <!-- kate: replace-tabs off; remove-trailing-spaces mod; dynamic-word-wrap off; --> |