cal.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "case_insensitive": true,
  3. "keywords": {
  4. "keyword": "div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",
  5. "literal": "false true"
  6. },
  7. "illegal": "\\\/\\*",
  8. "contains": [
  9. {
  10. "className": "string",
  11. "begin": "'",
  12. "end": "'",
  13. "contains": [
  14. {
  15. "begin": "''"
  16. }
  17. ]
  18. },
  19. {
  20. "className": "string",
  21. "begin": "(#\\d+)+"
  22. },
  23. {
  24. "className": "number",
  25. "begin": "\\b\\d+(\\.\\d+)?(DT|D|T)",
  26. "relevance": 0
  27. },
  28. {
  29. "className": "string",
  30. "begin": "\"",
  31. "end": "\""
  32. },
  33. {
  34. "className": "number",
  35. "begin": "\\b\\d+(\\.\\d+)?",
  36. "relevance": 0
  37. },
  38. {
  39. "className": "class",
  40. "begin": "OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",
  41. "returnBegin": true,
  42. "contains": [
  43. {
  44. "className": "title",
  45. "begin": "[a-zA-Z]\\w*",
  46. "relevance": 0
  47. },
  48. {
  49. "className": "function",
  50. "beginKeywords": "procedure",
  51. "end": "[:;]",
  52. "keywords": "procedure|10",
  53. "contains": [
  54. {
  55. "$ref": "#contains.5.contains.0"
  56. },
  57. {
  58. "className": "params",
  59. "begin": "\\(",
  60. "end": "\\)",
  61. "keywords": "div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",
  62. "contains": [
  63. {
  64. "$ref": "#contains.0"
  65. },
  66. {
  67. "$ref": "#contains.1"
  68. }
  69. ]
  70. },
  71. {
  72. "className": "comment",
  73. "begin": "\/\/",
  74. "end": "$",
  75. "contains": [
  76. {
  77. "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"
  78. },
  79. {
  80. "className": "doctag",
  81. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  82. "relevance": 0
  83. }
  84. ]
  85. },
  86. {
  87. "className": "comment",
  88. "begin": "\\{",
  89. "end": "\\}",
  90. "contains": [
  91. {
  92. "$ref": "#contains.5.contains.1.contains.2.contains.0"
  93. },
  94. {
  95. "className": "doctag",
  96. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  97. "relevance": 0
  98. }
  99. ],
  100. "relevance": 0
  101. },
  102. {
  103. "className": "comment",
  104. "begin": "\\(\\*",
  105. "end": "\\*\\)",
  106. "contains": [
  107. {
  108. "$ref": "#contains.5.contains.1.contains.2.contains.0"
  109. },
  110. {
  111. "className": "doctag",
  112. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  113. "relevance": 0
  114. }
  115. ],
  116. "relevance": 10
  117. }
  118. ]
  119. }
  120. ]
  121. },
  122. {
  123. "$ref": "#contains.5.contains.1"
  124. }
  125. ]
  126. }