Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/javadoc.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 | <language name="Javadoc" version="2" kateversion="2.4" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> | 3 | <language name="Javadoc" version="3" kateversion="5.0" section="Markup" extensions="" license="LGPL" author="Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)"> | ||
dhaumann: kateversion="5.0", since you use dsAnnotation (iirc). | |||||
4 | <highlighting> | 4 | <highlighting> | ||
5 | <contexts> | 5 | <contexts> | ||
6 | <context name="Start" attribute="Normal Text" lineEndContext="#stay"> | 6 | <context name="Start" attribute="Normal Text" lineEndContext="#stay"> | ||
7 | <IncludeRules context="FindJavadoc" /> | 7 | <IncludeRules context="FindJavadoc" /> | ||
8 | </context> | 8 | </context> | ||
9 | <context name="FindJavadoc" attribute="Normal Text" lineEndContext="#stay"> | 9 | <context name="FindJavadoc" attribute="Normal Text" lineEndContext="#stay"> | ||
10 | <StringDetect attribute="JavadocFS" context="#stay" String="/**/"/> | 10 | <StringDetect attribute="JavadocFS" context="#stay" String="/**/"/> | ||
11 | <StringDetect attribute="JavadocFS" context="JavadocFSar" String="/**" beginRegion="Javadoc"/> | 11 | <StringDetect attribute="JavadocFS" context="JavadocFSar" String="/**" beginRegion="Javadoc"/> | ||
Show All 12 Lines | 13 | <context attribute="JavadocFS" lineEndContext="#stay" name="JavadocFSar"> | |||
24 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> | 24 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> | ||
25 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> | 25 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> | ||
26 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> | 26 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> | ||
27 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> | 27 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> | ||
28 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> | 28 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> | ||
29 | <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> | 29 | <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> | ||
30 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> | 30 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> | ||
31 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> | 31 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> | ||
32 | <IncludeRules context="##Alerts"/> | ||||
32 | <IncludeRules context="##HTML"/> | 33 | <IncludeRules context="##HTML"/> | ||
33 | </context> | 34 | </context> | ||
34 | <context attribute="Javadoc" lineEndContext="#stay" name="Javadocar"> | 35 | <context attribute="Javadoc" lineEndContext="#stay" name="Javadocar"> | ||
35 | <Detect2Chars attribute="JavadocFS" context="#pop#pop" char="*" char1="/" endRegion="Javadoc"/> | 36 | <Detect2Chars attribute="JavadocFS" context="#pop#pop" char="*" char1="/" endRegion="Javadoc"/> | ||
36 | <RegExpr attribute="JavadocFS" context="#stay" String="\*+(?!/)" firstNonSpace="true"/> | 37 | <RegExpr attribute="JavadocFS" context="#stay" String="\*+(?!/)" firstNonSpace="true"/> | ||
37 | <StringDetect attribute="BlockTag" context="#stay" String="@author " /> | 38 | <StringDetect attribute="BlockTag" context="#stay" String="@author " /> | ||
38 | <StringDetect attribute="BlockTag" context="#stay" String="@deprecated " /> | 39 | <StringDetect attribute="BlockTag" context="#stay" String="@deprecated " /> | ||
39 | <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception " /> | 40 | <StringDetect attribute="BlockTag" context="JavadocParam" String="@exception " /> | ||
Show All 26 Lines | |||||
66 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> | 67 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@link	" /> | ||
67 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> | 68 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain " /> | ||
68 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> | 69 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@linkplain	" /> | ||
69 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> | 70 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal " /> | ||
70 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> | 71 | <StringDetect attribute="InlineTag" context="LiteralTagar" String="{@literal	" /> | ||
71 | <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> | 72 | <StringDetect attribute="InlineTag" context="#stay" String="{@value}" /> | ||
72 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> | 73 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value " /> | ||
73 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> | 74 | <StringDetect attribute="InlineTag" context="InlineTagar" String="{@value	" /> | ||
75 | <IncludeRules context="##Alerts"/> | ||||
74 | <IncludeRules context="##HTML"/> | 76 | <IncludeRules context="##HTML"/> | ||
75 | </context> | 77 | </context> | ||
76 | <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam"> | 78 | <context attribute="Javadoc" lineEndContext="#pop" name="JavadocParam"> | ||
77 | <DetectSpaces /> | 79 | <DetectSpaces /> | ||
78 | <RegExpr attribute="JavadocParam" context="#pop#pop" String="\S*(?=\*/)" /> | 80 | <RegExpr attribute="JavadocParam" context="#pop#pop" String="\S*(?=\*/)" /> | ||
79 | <RegExpr attribute="JavadocParam" context="#pop" String="\S*(\s|$)" /> | 81 | <RegExpr attribute="JavadocParam" context="#pop" String="\S*(\s|$)" /> | ||
82 | <IncludeRules context="##Alerts"/> | ||||
80 | </context> | 83 | </context> | ||
81 | <context attribute="InlineTag" name="InlineTagar" lineEndContext="#stay"> | 84 | <context attribute="InlineTag" name="InlineTagar" lineEndContext="#stay"> | ||
82 | <DetectChar attribute="InlineTag" context="#pop" char="}" /> | 85 | <DetectChar attribute="InlineTag" context="#pop" char="}" /> | ||
83 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | 86 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | ||
84 | <IncludeRules context="##HTML"/> | 87 | <IncludeRules context="##HTML"/> | ||
85 | </context> | 88 | </context> | ||
86 | <context attribute="InlineTag" name="LiteralTagar" lineEndContext="#stay"> | 89 | <context attribute="InlineTag" name="LiteralTagar" lineEndContext="#stay"> | ||
87 | <DetectChar attribute="InlineTag" context="#pop" char="}" /> | 90 | <DetectChar attribute="InlineTag" context="#pop" char="}" /> | ||
88 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | 91 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | ||
89 | </context> | 92 | </context> | ||
90 | <context attribute="SeeTag" lineEndContext="#pop" name="SeeTag"> | 93 | <context attribute="SeeTag" lineEndContext="#pop" name="SeeTag"> | ||
91 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | 94 | <Detect2Chars attribute="JavadocFS" context="#pop#pop#pop" char="*" char1="/" /> | ||
92 | <IncludeRules context="##HTML"/> | 95 | <IncludeRules context="##HTML"/> | ||
93 | </context> | 96 | </context> | ||
94 | </contexts> | 97 | </contexts> | ||
95 | <itemDatas> | 98 | <itemDatas> | ||
96 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | 99 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
97 | <itemData name="BlockTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="1" italic="0"/> | 100 | <itemData name="BlockTag" defStyleNum="dsAnnotation" bold="1" italic="0" spellChecking="false"/> | ||
98 | <itemData name="InlineTag" defStyleNum="dsKeyword" color="#808080" selColor="#FFFFFF" bold="0" italic="0"/> | 101 | <itemData name="InlineTag" defStyleNum="dsAnnotation" bold="0" italic="0" spellChecking="false"/> | ||
99 | <itemData name="JavadocParam" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/> | 102 | <itemData name="JavadocParam" defStyleNum="dsAnnotation" bold="0" italic="1" spellChecking="false"/> | ||
100 | <itemData name="SeeTag" defStyleNum="dsKeyword" color="#008080" selColor="#FFFFFF" bold="0" italic="1"/> | 103 | <itemData name="SeeTag" defStyleNum="dsAnnotation" bold="0" italic="1" spellChecking="false"/> | ||
101 | <itemData name="JavadocFS" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF" bold="1" italic="0"/> | 104 | <itemData name="JavadocFS" defStyleNum="dsComment" bold="1" italic="0" spellChecking="false"/> | ||
102 | <itemData name="Javadoc" defStyleNum="dsComment" color="#008000" selColor="#FFFFFF"/> | 105 | <itemData name="Javadoc" defStyleNum="dsComment"/> | ||
103 | </itemDatas> | 106 | </itemDatas> | ||
104 | </highlighting> | 107 | </highlighting> | ||
105 | <general> | 108 | <general> | ||
106 | <keywords casesensitive="1"/> | 109 | <keywords casesensitive="1"/> | ||
107 | </general> | 110 | </general> | ||
108 | </language> | 111 | </language> |
kateversion="5.0", since you use dsAnnotation (iirc).