| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <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 "Hello, world!"</S>
- <S>print("Hello, world!")</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 > 50 {</S>
- <S> teamScore += 3</S>
- <S> } else {</S>
- <S> teamScore += 1</S>
- <S> }</S>
- <S>}</S>
- <S>// Prints "11"</S>
- <S>print(teamScore)</S>
- </Sample>
- </Info>
- <Scheme File="" Name=""/>
- <Range Name="Root" Attributes="$80000008,$80000005;False:False." Style=""
- Delimiters="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~">
- <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="&"/>
- <Word Value="*"/>
- <Word Value="+"/>
- <Word Value="-"/>
- <Word Value="/"/>
- <Word Value="<"/>
- <Word Value="="/>
- <Word Value=">"/>
- <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="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~">
- <Rule OpenSymbol="//" CloseOnEol="True"/>
- </Range>
- <Range Name="Remarks /*..*/" Attributes="$00008000,$00FFFFFF;False:True." Style=""
- Delimiters="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~">
- <Rule OpenSymbol="/*" CloseSymbol="*/"/>
- </Range>
- <Range Name="Strings ".."" Attributes="$00696969,$00FFFFFF;False:True." Style=""
- Delimiters="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~">
- <Rule OpenSymbol=""" CloseSymbol="""/>
- <Keywords Name="Escape" Attributes="$00696969,$00FFFFFF;True:True." Style="">
- <Word Value="\""/>
- <Word Value="\\"/>
- </Keywords>
- </Range>
- <Range Name="Strings """..."""" Attributes="$00696969,$00FFFFFF;False:True." Style=""
- Delimiters="!"#$%&'()*+,-./:;<=>?@[\]^`{|}~">
- <Rule OpenSymbol=""""" CloseSymbol="""""/>
- </Range>
- </Range>
- </UniHighlighter>
|