-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathptg.xml
116 lines (111 loc) · 4.74 KB
/
ptg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Portugol"
section="Sources"
version="1.0"
kateversion="2.5.10"
indenter="cstyle"
extensions="*.ptg;*.PTG"
mimetype="text/c-portugol"
priority="5"
author="Ruben Carlo Benante ([email protected])"
license="GNU/GPL" >
<!--
=================================================================================
PTG - Portugol Compiler syntax highlighting file for KDE editors Kate and Kwrite
=================================================================================
// PTG - Portugol Source File highlighter
// To write your portugol progrmas
// written by Ruben Carlo Benante. - [email protected]
// 25/may/2009, v.1.0
// Thanks to c.xml and bash.xml
- Know bugs:
* no bugs
- Todo:
* preprocessor needs better logic, but it works the way it is.
-->
<highlighting>
<list name="keywords">
<item> inicio </item>
<item> fim </item>
<item> se </item>
<item> entao </item>
<item> senao </item>
<item> enquanto </item>
<item> aborte </item>
<item> para </item>
<item> importe </item>
<item> define </item>
</list>
<list name="types">
<item> int </item>
<item> real </item>
<item> texto </item>
</list>
<list name="loperators">
<item> e </item>
<item> ou </item>
<item> nao </item>
</list>
<list name="functions">
<item> imprima </item>
<item> leia </item>
<item> saia </item>
<item> raiz </item>
<item> exp </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal" >
<keyword attribute="Functions" context="#stay" String="functions"/>
<keyword attribute="Keyword" context="#stay" String="keywords" />
<DetectChar attribute="String" context="string" char=""" />
<keyword attribute="Data Type" context="#stay" String="types"/>
<keyword attribute="LOperators" context="#stay" String="loperators"/>
<Float attribute="Float" context="#stay" >
<AnyChar String="fF" attribute="Float" context="#stay"/>
</Float>
<Int attribute="Decimal" context="#stay" >
<StringDetect attribute="Decimal" context="#stay" String="ULL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LUL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LLU" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="UL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LU" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="LL" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="U" insensitive="TRUE"/>
<StringDetect attribute="Decimal" context="#stay" String="L" insensitive="TRUE"/>
</Int>
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/>
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/>
<DetectChar attribute="Preprocessor" context="Preprocessor 1" char="#" firstNonSpace="true" />
</context>
<context attribute="String" lineEndContext="#stay" name="string" >
<DetectChar attribute="String" context="#pop" char=""" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<LineContinue attribute="Comment" context="#stay"/>
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor 1">
<LineContinue attribute="Preprocessor" context="#stay"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Decimal" defStyleNum="dsDecVal"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Data Type" defStyleNum="dsDataType"/>
<itemData name="LOperators" defStyleNum="dsKeyword" color="#808"/>
<itemData name="Symbol" defStyleNum="dsKeyword" color="#808"/>
<itemData name="Functions" defStyleNum="dsFunction" />
<itemData name="Preprocessor" defStyleNum="dsOthers" color="#00b600"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//" />
</comments>
<keywords casesensitive="1" />
</general>
</language>