cos.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "case_insensitive": true,
  3. "aliases": [
  4. "cos",
  5. "cls"
  6. ],
  7. "keywords": "property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",
  8. "contains": [
  9. {
  10. "className": "number",
  11. "begin": "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
  12. "relevance": 0
  13. },
  14. {
  15. "className": "string",
  16. "variants": [
  17. {
  18. "begin": "\"",
  19. "end": "\"",
  20. "contains": [
  21. {
  22. "begin": "\"\"",
  23. "relevance": 0
  24. }
  25. ]
  26. }
  27. ]
  28. },
  29. {
  30. "className": "comment",
  31. "begin": "\/\/",
  32. "end": "$",
  33. "contains": [
  34. {
  35. "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
  36. },
  37. {
  38. "className": "doctag",
  39. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  40. "relevance": 0
  41. }
  42. ]
  43. },
  44. {
  45. "className": "comment",
  46. "begin": "\/\\*",
  47. "end": "\\*\/",
  48. "contains": [
  49. {
  50. "$ref": "#contains.2.contains.0"
  51. },
  52. {
  53. "className": "doctag",
  54. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  55. "relevance": 0
  56. }
  57. ]
  58. },
  59. {
  60. "className": "comment",
  61. "begin": ";",
  62. "end": "$",
  63. "relevance": 0
  64. },
  65. {
  66. "className": "built_in",
  67. "begin": "(?:\\$\\$?|\\.\\.)\\^?[a-zA-Z]+"
  68. },
  69. {
  70. "className": "built_in",
  71. "begin": "\\$\\$\\$[a-zA-Z]+"
  72. },
  73. {
  74. "className": "built_in",
  75. "begin": "%[a-z]+(?:\\.[a-z]+)*"
  76. },
  77. {
  78. "className": "symbol",
  79. "begin": "\\^%?[a-zA-Z][\\w]*"
  80. },
  81. {
  82. "className": "keyword",
  83. "begin": "##class|##super|#define|#dim"
  84. },
  85. {
  86. "begin": "&sql\\(",
  87. "end": "\\)",
  88. "excludeBegin": true,
  89. "excludeEnd": true,
  90. "subLanguage": "sql"
  91. },
  92. {
  93. "begin": "&(js|jscript|javascript)<",
  94. "end": ">",
  95. "excludeBegin": true,
  96. "excludeEnd": true,
  97. "subLanguage": "javascript"
  98. },
  99. {
  100. "begin": "&html<\\s*<",
  101. "end": ">\\s*>",
  102. "subLanguage": "xml"
  103. }
  104. ]
  105. }