File: Swift.hgl

package info (click to toggle)
doublecmd 1.1.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,968 kB
  • sloc: pascal: 374,335; sh: 1,180; ansic: 724; makefile: 132; python: 52; xml: 16
file content (134 lines) | stat: -rw-r--r-- 4,601 bytes parent folder | download
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<UniHighlighter version="1.8">
  <Info>
    <General Name="Swift" Extensions="SWIFT" Other="0"/>
    <Author Name="" Email="" Web="" Copyright="" Company="" Remark=""/>
    <Version Version="1" Revision="0" Date="45794,6870897801"/>
    <History>
    </History>
    <Sample>
      <S>// Syntax highlighting</S>
      <S>var myVariable = 42</S>
      <S>let myConstant = 42</S>
      <S>let explicitDouble: Double = 70</S>
      <S></S>
      <S>// Prints &quot;Hello, world!&quot;</S>
      <S>print(&quot;Hello, world!&quot;)</S>
      <S></S>
      <S>let individualScores = [75, 43, 103, 87, 12]</S>
      <S>var teamScore = 0</S>
      <S>for score in individualScores {</S>
      <S>    if score &gt; 50 {</S>
      <S>        teamScore += 3</S>
      <S>    } else {</S>
      <S>        teamScore += 1</S>
      <S>    }</S>
      <S>}</S>
      <S>// Prints &quot;11&quot;</S>
      <S>print(teamScore)</S>
    </Sample>
  </Info>
  <Scheme File="" Name=""/>
  <Range Name="Root" Attributes="$80000008,$80000005;False:False." Style=""
         Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
    <Rule/>
    <Keywords Name="Keywords" Attributes="$00FF0000,$00FFFFFF;False:True." Style="">
      <Word Value="class"/>
      <Word Value="deinit"/>
      <Word Value="enum"/>
      <Word Value="extension"/>
      <Word Value="func"/>
      <Word Value="import"/>
      <Word Value="init"/>
      <Word Value="internal"/>
      <Word Value="let"/>
      <Word Value="operator"/>
      <Word Value="private"/>
      <Word Value="protocol"/>
      <Word Value="public"/>
      <Word Value="static"/>
      <Word Value="struct"/>
      <Word Value="subscript"/>
      <Word Value="typealias"/>
      <Word Value="var"/>
      <Word Value="break"/>
      <Word Value="case"/>
      <Word Value="continue"/>
      <Word Value="default"/>
      <Word Value="do"/>
      <Word Value="else"/>
      <Word Value="fallthrough"/>
      <Word Value="for"/>
      <Word Value="if"/>
      <Word Value="in"/>
      <Word Value="return"/>
      <Word Value="switch"/>
      <Word Value="where"/>
      <Word Value="while"/>
    </Keywords>
    <Keywords Name="Operators" Attributes="$00CC3299,$80000005;False:True." Style="">
      <Word Value="!"/>
      <Word Value="%"/>
      <Word Value="&amp;"/>
      <Word Value="*"/>
      <Word Value="+"/>
      <Word Value="-"/>
      <Word Value="/"/>
      <Word Value="&lt;"/>
      <Word Value="="/>
      <Word Value="&gt;"/>
      <Word Value="?"/>
      <Word Value="\"/>
      <Word Value="^"/>
      <Word Value="|"/>
    </Keywords>
    <Keywords Name="Punctuators" Attributes="$000000FF,$80000005;False:True." Style="">
      <Word Value="("/>
      <Word Value=")"/>
      <Word Value="["/>
      <Word Value="]"/>
      <Word Value="{"/>
      <Word Value="}"/>
      <Word Value=","/>
      <Word Value="."/>
      <Word Value=":"/>
      <Word Value=";"/>
    </Keywords>
    <Keywords Name="Types" Attributes="$00000080,$00FFFFFF;False:True." Style="">
      <Word Value="Bool"/>
      <Word Value="Int"/>
      <Word Value="Int8"/>
      <Word Value="Int16"/>
      <Word Value="Int32"/>
      <Word Value="Int64"/>
      <Word Value="UInt"/>
      <Word Value="UInt8"/>
      <Word Value="UInt16"/>
      <Word Value="UInt32"/>
      <Word Value="UInt64"/>
      <Word Value="Double"/>
      <Word Value="Float"/>
      <Word Value="String"/>
      <Word Value="Character"/>
    </Keywords>
    <Range Name="Remarks //" Attributes="$00008000,$00FFFFFF;False:True." Style=""
           Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
      <Rule OpenSymbol="//" CloseOnEol="True"/>
    </Range>
    <Range Name="Remarks /*..*/" Attributes="$00008000,$00FFFFFF;False:True." Style=""
           Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
      <Rule OpenSymbol="/*" CloseSymbol="*/"/>
    </Range>
    <Range Name="Strings &quot;..&quot;" Attributes="$00696969,$00FFFFFF;False:True." Style=""
           Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
      <Rule OpenSymbol="&quot;" CloseSymbol="&quot;"/>
      <Keywords Name="Escape" Attributes="$00696969,$00FFFFFF;True:True." Style="">
        <Word Value="\&quot;"/>
        <Word Value="\\"/>
      </Keywords>
    </Range>
    <Range Name="Strings &quot;&quot;&quot;...&quot;&quot;&quot;" Attributes="$00696969,$00FFFFFF;False:True." Style=""
           Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
      <Rule OpenSymbol="&quot;&quot;&quot;" CloseSymbol="&quot;&quot;&quot;"/>
    </Range>
  </Range>
</UniHighlighter>