tokens_clojure.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. [[
  2. "start",
  3. ["keyword","("],
  4. ["support.function","defn"],
  5. ["text"," "],
  6. ["identifier","parting"]
  7. ],[
  8. "start",
  9. ["text"," "],
  10. ["string","\"returns a String parting in a given language\""]
  11. ],[
  12. "start",
  13. ["text"," "],
  14. ["keyword","([]"],
  15. ["text"," "],
  16. ["keyword","("],
  17. ["identifier","parting"],
  18. ["text"," "],
  19. ["string","\"World\""],
  20. ["keyword","))"]
  21. ],[
  22. "start",
  23. ["text"," "],
  24. ["keyword","(["],
  25. ["support.function","name"],
  26. ["keyword","]"],
  27. ["text"," "],
  28. ["keyword","("],
  29. ["identifier","parting"],
  30. ["text"," "],
  31. ["support.function","name"],
  32. ["text"," "],
  33. ["string","\"en\""],
  34. ["keyword","))"]
  35. ],[
  36. "start",
  37. ["text"," "],
  38. ["keyword","(["],
  39. ["support.function","name"],
  40. ["text"," "],
  41. ["identifier","language"],
  42. ["keyword","]"]
  43. ],[
  44. "start",
  45. ["text"," "],
  46. ["comment","; condp is similar to a case statement in other languages."]
  47. ],[
  48. "start",
  49. ["text"," "],
  50. ["comment","; It is described in more detail later."]
  51. ],[
  52. "start",
  53. ["text"," "],
  54. ["comment","; It is used here to take different actions based on whether the"]
  55. ],[
  56. "start",
  57. ["text"," "],
  58. ["comment","; parameter \"language\" is set to \"en\", \"es\" or something else."]
  59. ],[
  60. "start",
  61. ["text"," "],
  62. ["keyword","("],
  63. ["support.function","condp"],
  64. ["text"," "],
  65. ["constant.language","="],
  66. ["text"," "],
  67. ["identifier","language"]
  68. ],[
  69. "start",
  70. ["text"," "],
  71. ["string","\"en\""],
  72. ["text"," "],
  73. ["keyword","("],
  74. ["support.function","str"],
  75. ["text"," "],
  76. ["string","\"Goodbye, \""],
  77. ["text"," "],
  78. ["support.function","name"],
  79. ["keyword",")"]
  80. ],[
  81. "start",
  82. ["text"," "],
  83. ["string","\"es\""],
  84. ["text"," "],
  85. ["keyword","("],
  86. ["support.function","str"],
  87. ["text"," "],
  88. ["string","\"Adios, \""],
  89. ["text"," "],
  90. ["support.function","name"],
  91. ["keyword",")"]
  92. ],[
  93. "start",
  94. ["text"," "],
  95. ["keyword","(throw"],
  96. ["text"," "],
  97. ["keyword","("],
  98. ["identifier","IllegalArgumentException"],
  99. ["text","."]
  100. ],[
  101. "start",
  102. ["text"," "],
  103. ["keyword","("],
  104. ["support.function","str"],
  105. ["text"," "],
  106. ["string","\"unsupported language \""],
  107. ["text"," "],
  108. ["identifier","language"],
  109. ["keyword","))))))"]
  110. ],[
  111. "start"
  112. ],[
  113. "start",
  114. ["keyword","("],
  115. ["support.function","println"],
  116. ["text"," "],
  117. ["keyword","("],
  118. ["identifier","parting"],
  119. ["keyword","))"],
  120. ["text"," "],
  121. ["comment","; -> Goodbye, World"]
  122. ],[
  123. "start",
  124. ["keyword","("],
  125. ["support.function","println"],
  126. ["text"," "],
  127. ["keyword","("],
  128. ["identifier","parting"],
  129. ["text"," "],
  130. ["string","\"Mark\""],
  131. ["keyword","))"],
  132. ["text"," "],
  133. ["comment","; -> Goodbye, Mark"]
  134. ],[
  135. "start",
  136. ["keyword","("],
  137. ["support.function","println"],
  138. ["text"," "],
  139. ["keyword","("],
  140. ["identifier","parting"],
  141. ["text"," "],
  142. ["string","\"Mark\""],
  143. ["text"," "],
  144. ["string","\"es\""],
  145. ["keyword","))"],
  146. ["text"," "],
  147. ["comment","; -> Adios, Mark"]
  148. ],[
  149. "start",
  150. ["keyword","("],
  151. ["support.function","println"],
  152. ["text"," "],
  153. ["keyword","("],
  154. ["identifier","parting"],
  155. ["text"," "],
  156. ["string","\"Mark\""],
  157. ["text",", "],
  158. ["string","\"xy\""],
  159. ["keyword","))"],
  160. ["text"," "],
  161. ["comment","; -> java.lang.IllegalArgumentException: unsupported language xy"]
  162. ]]