Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/fgl-per.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="4GL-PER" version="3" kateversion="5.0" section="Database" extensions="*.per;*.PER;*.per.err" mimetype="text/x-4glper;text/x-4glpererr" author="Andrej Falout (andrej@falout.org)" license="LGPL"> | 3 | <language name="4GL-PER" version="4" kateversion="5.0" section="Database" extensions="*.per;*.PER;*.per.err" mimetype="text/x-4glper;text/x-4glpererr" author="Andrej Falout (andrej@falout.org)" license="LGPL"> | ||
4 | <highlighting> | 4 | <highlighting> | ||
5 | <list name="keywords"> | 5 | <list name="keywords"> | ||
6 | <item>by</item> | 6 | <item>by</item> | ||
7 | <item>to</item> | 7 | <item>to</item> | ||
8 | 8 | | |||
9 | <item>end</item> | 9 | <item>end</item> | ||
10 | <item>not</item> | 10 | <item>not</item> | ||
11 | <item>red</item> | 11 | <item>red</item> | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 64 | <list name="types"> | |||
76 | <item>FRACTION</item> | 76 | <item>FRACTION</item> | ||
77 | <item>INTERVAL</item> | 77 | <item>INTERVAL</item> | ||
78 | <item>smallint</item> | 78 | <item>smallint</item> | ||
79 | </list> | 79 | </list> | ||
80 | <contexts> | 80 | <contexts> | ||
81 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text 1"> | 81 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text 1"> | ||
82 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | 82 | <keyword attribute="Keyword" context="#stay" String="keywords"/> | ||
83 | <keyword attribute="Data Type" context="#stay" String="types"/> | 83 | <keyword attribute="Data Type" context="#stay" String="types"/> | ||
84 | <Float attribute="Float" context="#stay"> | 84 | <Float attribute="Float" context="Float Suffixes"/> | ||
85 | <AnyChar String="fF" attribute="Float" context="#stay"/> | | |||
86 | </Float> | | |||
87 | <HlCOct attribute="Octal" context="#stay"/> | 85 | <HlCOct attribute="Octal" context="#stay"/> | ||
88 | <HlCHex attribute="Hex" context="#stay"/> | 86 | <HlCHex attribute="Hex" context="#stay"/> | ||
89 | <Int attribute="Decimal" context="#stay" > | 87 | <Int attribute="Decimal" context="Int Suffixes"/> | ||
90 | <StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="true"/> | | |||
91 | <StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="true"/> | | |||
92 | <StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="true"/> | | |||
93 | <StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="true"/> | | |||
94 | <StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="true"/> | | |||
95 | <StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="true"/> | | |||
96 | <StringDetect attribute="Decimal" context="#stay" String="U" insensitive="true"/> | | |||
97 | <StringDetect attribute="Decimal" context="#stay" String="L" insensitive="true"/> | | |||
98 | </Int> | | |||
99 | <HlCChar attribute="Char" context="#stay"/> | 88 | <HlCChar attribute="Char" context="#stay"/> | ||
100 | <DetectChar attribute="String" context="String" char="""/> | 89 | <DetectChar attribute="String" context="String" char="""/> | ||
101 | <DetectChar attribute="Comment" context="Comment 1" char="#"/> | 90 | <DetectChar attribute="Comment" context="Comment 1" char="#"/> | ||
102 | <DetectChar attribute="Comment" context="Comment 2" char="{"/> | 91 | <DetectChar attribute="Comment" context="Comment 2" char="{"/> | ||
103 | <Detect2Chars attribute="Comment" context="Comment 1" char="/" char1="/"/> | 92 | <Detect2Chars attribute="Comment" context="Comment 1" char="/" char1="/"/> | ||
104 | <Detect2Chars attribute="Comment" context="Comment 2" char="/" char1="*"/> | 93 | <Detect2Chars attribute="Comment" context="Comment 2" char="/" char1="*"/> | ||
105 | <AnyChar attribute="Symbol" context="#stay" String="!%&()+,-<=>?[]^|~"/> | 94 | <AnyChar attribute="Symbol" context="#stay" String="!%&()+,-<=>?[]^|~"/> | ||
106 | <StringDetect attribute="Preprocessor" context="Comment 4" String="#if 0" insensitive="false"/> | 95 | <StringDetect attribute="Preprocessor" context="Comment 4" String="#if 0" insensitive="false"/> | ||
107 | <RegExpr attribute="Preprocessor" context="Preprocessor" String="#"/> | 96 | <RegExpr attribute="Preprocessor" context="Preprocessor" String="#"/> | ||
108 | </context> | 97 | </context> | ||
98 | <context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||||
99 | <AnyChar String="fF" attribute="Float" context="#pop"/> | ||||
100 | </context> | ||||
101 | <context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop"> | ||||
102 | <StringDetect attribute="Decimal" context="#pop" String="ULL" insensitive="true"/> | ||||
103 | <StringDetect attribute="Decimal" context="#pop" String="LUL" insensitive="true"/> | ||||
104 | <StringDetect attribute="Decimal" context="#pop" String="LLU" insensitive="true"/> | ||||
105 | <StringDetect attribute="Decimal" context="#pop" String="UL" insensitive="true"/> | ||||
106 | <StringDetect attribute="Decimal" context="#pop" String="LU" insensitive="true"/> | ||||
107 | <StringDetect attribute="Decimal" context="#pop" String="LL" insensitive="true"/> | ||||
108 | <StringDetect attribute="Decimal" context="#pop" String="U" insensitive="true"/> | ||||
109 | <StringDetect attribute="Decimal" context="#pop" String="L" insensitive="true"/> | ||||
110 | </context> | ||||
109 | <context attribute="String" lineEndContext="#pop" name="String"> | 111 | <context attribute="String" lineEndContext="#pop" name="String"> | ||
110 | <LineContinue attribute="String" context="#stay"/> | 112 | <LineContinue attribute="String" context="#stay"/> | ||
111 | <HlCStringChar attribute="String Char" context="#stay"/> | 113 | <HlCStringChar attribute="String Char" context="#stay"/> | ||
112 | <DetectChar attribute="String" context="#pop" char="""/> | 114 | <DetectChar attribute="String" context="#pop" char="""/> | ||
113 | </context> | 115 | </context> | ||
114 | <context attribute="Comment" lineEndContext="#pop" name="Comment 1"> | 116 | <context attribute="Comment" lineEndContext="#pop" name="Comment 1"> | ||
115 | <RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" /> | 117 | <RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" /> | ||
116 | </context> | 118 | </context> | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |