summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/fortran.xml
blob: ff4639bc140a4c3ccd58dde35a86c1497e8a273a (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Fortran" section="Sources" extensions="*.f;*.F;*.x" mimetype="text/x-fortran-src">
  <highlighting>
    <list name="keywords">
      <item> break </item>
      <item> common </item>
      <item> continue </item>
      <item> date </item>
      <item> default </item>
      <item> dimension </item>
      <item> do </item>
      <item> else </item>
      <item> enddo </item>
      <item> endif </item>
      <item> for </item>
      <item> goto </item>
      <item> go </item>
      <item> to </item>
      <item> if </item>
      <item> then </item>
      <item> return </item>
      <item> end </item>
      <item> format </item>
      <item> write </item>
      <item> read </item>
      <item> subroutine </item>
      <item> function </item>
      <item> switch </item>
      <item> program </item>
      <item> call </item>
      <item> while </item>
      <item> &per;gt&per; </item>
      <item> &per;lt&per; </item>
      <item> &per;ge&per; </item>
      <item> &per;le&per; </item>
      <item> &per;eq&per; </item>
      <item> &per;ne&per; </item>
    </list>
    <list name="types">
      <item> character </item>
      <item> complex </item>
      <item> double </item>
      <item> precision </item>
      <item> real </item>
      <item> real*8 </item>
      <item> integer </item>
      <item> common </item>
      <item> logical </item>
      <item> implicit </item>
      <item> dimension </item>
      <item> external </item>
      <item> parameter </item>
    </list>
    <contexts>
      <context attribute="Normal Text" lineEndContext="0">
        <keyword attribute="Keyword" context="0" String="keywords"/>
        <keyword attribute="Data Type" context="0" String="types"/>
        <Float attribute="Float" context="0">
          <AnyChar attribute="Float" context="0" String="fFdD"/>
        </Float>
        <HlCOct attribute="Octal" context="0"/>
        <HlCHex attribute="Hex" context="0"/>
        <Int attribute="Decimal" context="0" />
        <HlCChar attribute="Char" context="0"/>
        <DetectChar attribute="String" context="1" char="&quot;"/>
        <RegExpr attribute = "Comment" context="0" String="^[cC].*$"/>
        <RegExpr attribute = "Preprocessor" context="0" String="^[\*#].*$"/>
        <AnyChar attribute="Symbol" context="0" String="!%&amp;()+,-&lt;=&gt;?[]^{|}~"/>
      </context>
      <context attribute="String" lineEndContext="0">
        <HlCStringChar attribute="String Char" context="1"/>
        <DetectChar attribute="String" context="0" char="&quot;"/>
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Keyword"  defStyleNum="dsKeyword"/>
      <itemData name="Data Type"  defStyleNum="dsDataType"/>
      <itemData name="Decimal"  defStyleNum="dsDecVal"/>
      <itemData name="Octal"  defStyleNum="dsBaseN"/>
      <itemData name="Hex"  defStyleNum="dsBaseN"/>
      <itemData name="Float"  defStyleNum="dsFloat"/>
      <itemData name="Char"  defStyleNum="dsChar"/>
      <itemData name="String"  defStyleNum="dsString"/>
      <itemData name="String Char"  defStyleNum="dsChar"/>
      <itemData name="Comment"  defStyleNum="dsComment"/>
      <itemData name="Symbol"  defStyleNum="dsNormal"/>
      <itemData name="Preprocessor"  defStyleNum="dsOthers"/>
      <itemData name="Prep. Lib"  defStyleNum="dsOthers"/>
    </itemDatas>
  </highlighting>
  <general>
    <keywords casesensitive="0" />
    <comments>
      <comment name="singleLine" start="c" />
    </comments>
  </general>
</language>