capnproto.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "aliases": [
  3. "capnp"
  4. ],
  5. "keywords": {
  6. "keyword": "struct enum interface union group import using const annotation extends in of on as with from fixed",
  7. "built_in": "Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",
  8. "literal": "true false"
  9. },
  10. "contains": [
  11. {
  12. "className": "string",
  13. "begin": "\"",
  14. "end": "\"",
  15. "illegal": "\\n",
  16. "contains": [
  17. {
  18. "begin": "\\\\[\\s\\S]",
  19. "relevance": 0
  20. }
  21. ]
  22. },
  23. {
  24. "className": "number",
  25. "begin": "\\b\\d+(\\.\\d+)?",
  26. "relevance": 0
  27. },
  28. {
  29. "className": "comment",
  30. "begin": "#",
  31. "end": "$",
  32. "contains": [
  33. {
  34. "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"
  35. },
  36. {
  37. "className": "doctag",
  38. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  39. "relevance": 0
  40. }
  41. ]
  42. },
  43. {
  44. "className": "meta",
  45. "begin": "@0x[\\w\\d]{16};",
  46. "illegal": "\\n"
  47. },
  48. {
  49. "className": "symbol",
  50. "begin": "@\\d+\\b"
  51. },
  52. {
  53. "className": "class",
  54. "beginKeywords": "struct enum",
  55. "end": "\\{",
  56. "illegal": "\\n",
  57. "contains": [
  58. {
  59. "className": "title",
  60. "begin": "[a-zA-Z]\\w*",
  61. "relevance": 0,
  62. "starts": {
  63. "endsWithParent": true,
  64. "excludeEnd": true
  65. }
  66. }
  67. ]
  68. },
  69. {
  70. "className": "class",
  71. "beginKeywords": "interface",
  72. "end": "\\{",
  73. "illegal": "\\n",
  74. "contains": [
  75. {
  76. "className": "title",
  77. "begin": "[a-zA-Z]\\w*",
  78. "relevance": 0,
  79. "starts": {
  80. "endsWithParent": true,
  81. "excludeEnd": true
  82. }
  83. }
  84. ]
  85. }
  86. ]
  87. }