Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/clist.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | ||||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||||
3 | <language name="CLIST" version="2" kateversion="2.2" section="Scripts" extensions="*.clist;*.CLIST" mimetype=""> | ||||
dhaumann: license="MIT" is missing. | |||||
dhaumann: kateversion="5.0", or are you indeed using an old Kate before Plasma5? | |||||
4 | <highlighting> | ||||
5 | <list name="control"> | ||||
6 | <item>ATTN</item> | ||||
7 | <item>CONTROL</item> | ||||
8 | <item>DATA-ENDDATA</item> | ||||
9 | <item>DATA-PROMPT</item> | ||||
10 | <item>ERROR</item> | ||||
11 | <item>EXIT</item> | ||||
12 | <item>GLOBAL</item> | ||||
13 | <item>GOTO</item> | ||||
14 | <item>NGLOBAL</item> | ||||
15 | <item>PROC</item> | ||||
16 | <item>RETURN</item> | ||||
17 | <item>SYSCALL</item> | ||||
18 | <item>SYSREF</item> | ||||
19 | <item>TERMIN</item> | ||||
20 | <item>WRITE</item> | ||||
21 | <item>WRITENR</item> | ||||
22 | </list> | ||||
23 | <list name="assignment"> | ||||
24 | <item>READ</item> | ||||
25 | <item>READDVAL</item> | ||||
26 | <item>SET</item> | ||||
27 | <item>LISTDSI</item> | ||||
28 | </list> | ||||
29 | <list name="flowcontrol"> | ||||
30 | <item>DO</item> | ||||
31 | <item>IF</item> | ||||
32 | <item>TO</item> | ||||
33 | <item>THEN</item> | ||||
34 | <item>END</item> | ||||
35 | <item>ELSE</item> | ||||
36 | <item>SELECT</item> | ||||
37 | </list> | ||||
38 | <list name="IO"> | ||||
39 | <item>CLOSFILE</item> | ||||
40 | <item>GETFILE</item> | ||||
41 | <item>OPENFILE</item> | ||||
42 | <item>PUTFILE</item> | ||||
43 | </list> | ||||
44 | <contexts> | ||||
45 | <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> | ||||
46 | <keyword attribute="Control" context="#stay" String="control" /> | ||||
47 | <keyword attribute="Assignment" context="#stay" String="assignment" /> | ||||
48 | <keyword attribute="Control Flow" context="#stay" String="flowcontrol" /> | ||||
49 | <keyword attribute="inputOutput" context="#stay" String="IO" /> | ||||
50 | <RegExpr attribute="Variable" context="#stay" insensitive="true" String="&+[A-Z0-9]*"/> | ||||
51 | <RegExpr attribute="Number" context="#stay" insensitive="true" String="\b(\d+)\b"/> | ||||
52 | <RegExpr attribute="String" context="#stay" insensitive="true" String="(?<=WRITE).*"/> | ||||
53 | <DetectChar attribute="String" context="String" char="'"/> | ||||
54 | <DetectChar attribute="String" context="String" char="""/> | ||||
55 | <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="*" beginRegion="Comment"/> | ||||
56 | </context> | ||||
57 | <context attribute="String" lineEndContext="#pop" name="String"> | ||||
58 | <DetectChar attribute="String" context="#pop" char="'"/> | ||||
59 | <DetectChar attribute="String" context="String" char="""/> | ||||
60 | </context> | ||||
61 | <context attribute="Comment" lineEndContext="#stay" name="Commentar 1"> | ||||
Maybe rename Commentar 1 to simply Comment? It seems you copy & pasted the file :) dhaumann: Maybe rename Commentar 1 to simply Comment? It seems you copy & pasted the file :) | |||||
62 | <RegExpr attribute="Alert" context="#stay" String="(FIXME|TODO)" /> | ||||
Please use IncludeRules with ##Alerts, look into other highlighting files how this is done. dhaumann: Please use IncludeRules with ##Alerts, look into other highlighting files how this is done. | |||||
63 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> | ||||
64 | </context> | ||||
65 | </contexts> | ||||
66 | <itemDatas> | ||||
67 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||||
68 | <itemData name="Comment" defStyleNum="dsComment"/> | ||||
69 | <itemData name="Control" defStyleNum="dsNormal" color="#000090"/> | ||||
Please remove the hard coded color. Hard coded colors are an issue with different color schemes. See https://kate-editor.org/2014/03/07/kate-part-kf5-new-default-styles-for-better-color-schemes/ for more default styles. dhaumann: Please remove the hard coded color. Hard coded colors are an issue with different color schemes. | |||||
70 | <itemData name="Assignment" defStyleNum="dsBuiltIn"/> | ||||
71 | <itemData name="Control Flow" defStyleNum="dsControlFlow"/> | ||||
72 | <itemData name="inputOutput" defStyleNum="dsKeyword"/> | ||||
73 | <itemData name="Variable" defStyleNum="dsVariable"/> | ||||
74 | <itemData name="Number" defStyleNume="dsDataType"/> | ||||
75 | <itemData name="String" defStyleNum="dsString"/> | ||||
76 | </itemDatas> | ||||
77 | </highlighting> | ||||
78 | <general> | ||||
79 | <comments> | ||||
80 | <comment name="singleLine" start="/*"/> | ||||
81 | </comments> | ||||
82 | <keywords casesensitive="0" /> | ||||
83 | </general> | ||||
84 | </language> |
license="MIT" is missing.