Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/ansic89.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="ANSI C89" section="Sources" | 3 | <language name="ANSI C89" section="Sources" | ||
4 | version="4" kateversion="5.0" | 4 | version="5" kateversion="5.0" | ||
5 | indenter="cstyle" | 5 | indenter="cstyle" | ||
6 | extensions="*.c;*.C;*.h" | 6 | extensions="*.c;*.C;*.h" | ||
7 | mimetype="text/x-csrc;text/x-c++src;text/x-chdr" | 7 | mimetype="text/x-csrc;text/x-c++src;text/x-chdr" | ||
8 | priority="2" | 8 | priority="2" | ||
9 | author="Dominik Haumann (dhaumann@kde.org)" license="MIT"> | 9 | author="Dominik Haumann (dhaumann@kde.org)" license="MIT"> | ||
10 | <highlighting> | 10 | <highlighting> | ||
11 | <list name="keywords"> | 11 | <list name="keywords"> | ||
12 | <item>break</item> | 12 | <item>break</item> | ||
Show All 36 Lines | 48 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | |||
49 | <DetectSpaces /> | 49 | <DetectSpaces /> | ||
50 | <RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" /> | 50 | <RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="Outscoped" firstNonSpace="true" /> | ||
51 | <DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" /> | 51 | <DetectChar attribute="Preprocessor" context="Preprocessor" char="#" firstNonSpace="true" /> | ||
52 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | 52 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | ||
53 | <keyword attribute="Data Type" context="#stay" String="types"/> | 53 | <keyword attribute="Data Type" context="#stay" String="types"/> | ||
54 | <DetectIdentifier /> | 54 | <DetectIdentifier /> | ||
55 | <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> | 55 | <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> | ||
56 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> | 56 | <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> | ||
57 | <Float attribute="Float" context="#stay"> | 57 | <Float attribute="Float" context="Float Suffixes"/> | ||
58 | <AnyChar String="fF" attribute="Float" context="#stay"/> | | |||
59 | </Float> | | |||
60 | <HlCOct attribute="Octal" context="#stay"/> | 58 | <HlCOct attribute="Octal" context="#stay"/> | ||
61 | <HlCHex attribute="Hex" context="#stay"/> | 59 | <HlCHex attribute="Hex" context="#stay"/> | ||
62 | <Int attribute="Decimal" context="#stay" > | 60 | <Int attribute="Decimal" context="Int Suffixes"/> | ||
63 | <StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="true"/> | | |||
64 | <StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="true"/> | | |||
65 | <StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="true"/> | | |||
66 | <StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="true"/> | | |||
67 | <StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="true"/> | | |||
68 | <StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="true"/> | | |||
69 | <StringDetect attribute="Decimal" context="#stay" String="U" insensitive="true"/> | | |||
70 | <StringDetect attribute="Decimal" context="#stay" String="L" insensitive="true"/> | | |||
71 | </Int> | | |||
72 | <HlCChar attribute="Char" context="#stay"/> | 61 | <HlCChar attribute="Char" context="#stay"/> | ||
73 | <DetectChar attribute="String" context="String" char="""/> | 62 | <DetectChar attribute="String" context="String" char="""/> | ||
74 | <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/> | 63 | <Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="blockcomment"/> | ||
75 | <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> | 64 | <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> | ||
76 | </context> | 65 | </context> | ||
66 | <context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||||
67 | <AnyChar String="fF" attribute="Float" context="#pop"/> | ||||
68 | </context> | ||||
69 | <context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||||
70 | <StringDetect attribute="Decimal" context="#pop" String="ULL" insensitive="true"/> | ||||
71 | <StringDetect attribute="Decimal" context="#pop" String="LUL" insensitive="true"/> | ||||
72 | <StringDetect attribute="Decimal" context="#pop" String="LLU" insensitive="true"/> | ||||
73 | <StringDetect attribute="Decimal" context="#pop" String="UL" insensitive="true"/> | ||||
74 | <StringDetect attribute="Decimal" context="#pop" String="LU" insensitive="true"/> | ||||
75 | <StringDetect attribute="Decimal" context="#pop" String="LL" insensitive="true"/> | ||||
76 | <StringDetect attribute="Decimal" context="#pop" String="U" insensitive="true"/> | ||||
77 | <StringDetect attribute="Decimal" context="#pop" String="L" insensitive="true"/> | ||||
78 | </context> | ||||
77 | <context attribute="String" lineEndContext="#pop" name="String"> | 79 | <context attribute="String" lineEndContext="#pop" name="String"> | ||
78 | <LineContinue attribute="String" context="#stay"/> | 80 | <LineContinue attribute="String" context="#stay"/> | ||
79 | <HlCStringChar attribute="String Char" context="#stay"/> | 81 | <HlCStringChar attribute="String Char" context="#stay"/> | ||
80 | <DetectChar attribute="String" context="#pop" char="""/> | 82 | <DetectChar attribute="String" context="#pop" char="""/> | ||
81 | </context> | 83 | </context> | ||
82 | <context attribute="Comment" lineEndContext="#stay" name="comment"> | 84 | <context attribute="Comment" lineEndContext="#stay" name="comment"> | ||
83 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="blockcomment"/> | 85 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="blockcomment"/> | ||
84 | <IncludeRules context="##Alerts" /> | 86 | <IncludeRules context="##Alerts" /> | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |