Go.hgl 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <UniHighlighter version="1.8.1">
  2. <Info>
  3. <General Name="Go" Extensions="GO"/>
  4. <Author Name="" Email="" Web="" Copyright="" Company="" Remark=""/>
  5. <Version Version="1" Revision="0" Date="45442,3845858218"/>
  6. <History>
  7. </History>
  8. <Sample>
  9. <S>package main</S>
  10. <S></S>
  11. <S>import &quot;fmt&quot;</S>
  12. <S></S>
  13. <S>// Link struct</S>
  14. <S>type Link struct {</S>
  15. <S> URL, Title string</S>
  16. <S>}</S>
  17. <S></S>
  18. <S>/*</S>
  19. <S>* Main function</S>
  20. <S>*/</S>
  21. <S>func main() {</S>
  22. <S> ch := make(chan int)</S>
  23. <S> helloPeople := `Hello people!`</S>
  24. <S> fmt.Println(&quot;Hello world!&quot;)</S>
  25. <S>}</S>
  26. </Sample>
  27. </Info>
  28. <Scheme File="" Name=""/>
  29. <Range Name="Root" Attributes="$80000008,$80000005;False:False." Style="" CaseSensitive="True"
  30. Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
  31. <Rule/>
  32. <Keywords Name="Keywords" Attributes="$00FF0000,$80000005;False:True." Style="">
  33. <Word value="break"/>
  34. <Word value="case"/>
  35. <Word value="chan"/>
  36. <Word value="const"/>
  37. <Word value="continue"/>
  38. <Word value="default"/>
  39. <Word value="defer"/>
  40. <Word value="else"/>
  41. <Word value="fallthrough"/>
  42. <Word value="for"/>
  43. <Word value="func"/>
  44. <Word value="go"/>
  45. <Word value="goto"/>
  46. <Word value="if"/>
  47. <Word value="import"/>
  48. <Word value="interface"/>
  49. <Word value="map"/>
  50. <Word value="package"/>
  51. <Word value="range"/>
  52. <Word value="return"/>
  53. <Word value="select"/>
  54. <Word value="struct"/>
  55. <Word value="switch"/>
  56. <Word value="type"/>
  57. <Word value="var"/>
  58. <Word value="_"/>
  59. <Word value="false"/>
  60. <Word value="iota"/>
  61. <Word value="nil"/>
  62. <Word value="true"/>
  63. </Keywords>
  64. <Keywords Name="Types" Attributes="$00000080,$80000005;False:True." Style="">
  65. <Word value="any"/>
  66. <Word value="bool"/>
  67. <Word value="byte"/>
  68. <Word value="comparable"/>
  69. <Word value="complex64"/>
  70. <Word value="complex128"/>
  71. <Word value="error"/>
  72. <Word value="float32"/>
  73. <Word value="float64"/>
  74. <Word value="int"/>
  75. <Word value="int8"/>
  76. <Word value="int16"/>
  77. <Word value="int32"/>
  78. <Word value="int64"/>
  79. <Word value="rune"/>
  80. <Word value="string"/>
  81. <Word value="uint"/>
  82. <Word value="uint8"/>
  83. <Word value="uint16"/>
  84. <Word value="uint32"/>
  85. <Word value="uint64"/>
  86. <Word value="uintptr"/>
  87. </Keywords>
  88. <Keywords Name="Functions" Attributes="$00800000,$80000005;False:True." Style="">
  89. <Word value="append"/>
  90. <Word value="cap"/>
  91. <Word value="clear"/>
  92. <Word value="close"/>
  93. <Word value="complex"/>
  94. <Word value="copy"/>
  95. <Word value="delete"/>
  96. <Word value="imag"/>
  97. <Word value="len"/>
  98. <Word value="make"/>
  99. <Word value="max"/>
  100. <Word value="min"/>
  101. <Word value="new"/>
  102. <Word value="panic"/>
  103. <Word value="print"/>
  104. <Word value="println"/>
  105. <Word value="real"/>
  106. <Word value="recover"/>
  107. </Keywords>
  108. <Range Name="Strings `..`" Attributes="$00696969,$80000005;False:True." Style=""
  109. Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
  110. <Rule OpenSymbol="`" CloseSymbol="`"/>
  111. </Range>
  112. <Range Name="Strings &quot;..&quot;" Attributes="$00696969,$80000005;False:True." Style=""
  113. Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
  114. <Rule OpenSymbol="&quot;" CloseSymbol="&quot;"/>
  115. <Keywords Name="Escape" Attributes="$00696969,$80000005;True:True." Style="">
  116. <Word Value="\&quot;"/>
  117. <Word Value="\\"/>
  118. </Keywords>
  119. </Range>
  120. <Range Name="Remarks //" Attributes="$00008000,$80000005;False:True." Style=""
  121. Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
  122. <Rule OpenSymbol="//" CloseOnEol="True"/>
  123. </Range>
  124. <Range Name="Remarks /*..*/" Attributes="$00008000,$80000005;False:True." Style=""
  125. Delimiters="!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^`{|}~">
  126. <Rule OpenSymbol="/*" CloseSymbol="*/"/>
  127. </Range>
  128. </Range>
  129. </UniHighlighter>