protobuf.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "keywords": {
  3. "keyword": "package import option optional required repeated group oneof",
  4. "built_in": "double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",
  5. "literal": "true false"
  6. },
  7. "contains": [
  8. {
  9. "className": "string",
  10. "begin": "\"",
  11. "end": "\"",
  12. "illegal": "\\n",
  13. "contains": [
  14. {
  15. "begin": "\\\\[\\s\\S]",
  16. "relevance": 0
  17. }
  18. ]
  19. },
  20. {
  21. "className": "number",
  22. "begin": "\\b\\d+(\\.\\d+)?",
  23. "relevance": 0
  24. },
  25. {
  26. "className": "comment",
  27. "begin": "\/\/",
  28. "end": "$",
  29. "contains": [
  30. {
  31. "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"
  32. },
  33. {
  34. "className": "doctag",
  35. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  36. "relevance": 0
  37. }
  38. ]
  39. },
  40. {
  41. "className": "class",
  42. "beginKeywords": "message enum service",
  43. "end": "\\{",
  44. "illegal": "\\n",
  45. "contains": [
  46. {
  47. "className": "title",
  48. "begin": "[a-zA-Z]\\w*",
  49. "relevance": 0,
  50. "starts": {
  51. "endsWithParent": true,
  52. "excludeEnd": true
  53. }
  54. }
  55. ]
  56. },
  57. {
  58. "className": "function",
  59. "beginKeywords": "rpc",
  60. "end": ";",
  61. "excludeEnd": true,
  62. "keywords": "rpc returns"
  63. },
  64. {
  65. "begin": "^\\s*[A-Z_]+",
  66. "end": "\\s*=",
  67. "excludeEnd": true
  68. }
  69. ]
  70. }