bnf.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "contains": [
  3. {
  4. "className": "attribute",
  5. "begin": "<",
  6. "end": ">"
  7. },
  8. {
  9. "begin": "::=",
  10. "starts": {
  11. "end": "$",
  12. "contains": [
  13. {
  14. "begin": "<",
  15. "end": ">"
  16. },
  17. {
  18. "className": "comment",
  19. "begin": "\/\/",
  20. "end": "$",
  21. "contains": [
  22. {
  23. "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"
  24. },
  25. {
  26. "className": "doctag",
  27. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  28. "relevance": 0
  29. }
  30. ]
  31. },
  32. {
  33. "className": "comment",
  34. "begin": "\/\\*",
  35. "end": "\\*\/",
  36. "contains": [
  37. {
  38. "$ref": "#contains.1.starts.contains.1.contains.0"
  39. },
  40. {
  41. "className": "doctag",
  42. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  43. "relevance": 0
  44. }
  45. ]
  46. },
  47. {
  48. "className": "string",
  49. "begin": "'",
  50. "end": "'",
  51. "illegal": "\\n",
  52. "contains": [
  53. {
  54. "begin": "\\\\[\\s\\S]",
  55. "relevance": 0
  56. }
  57. ]
  58. },
  59. {
  60. "className": "string",
  61. "begin": "\"",
  62. "end": "\"",
  63. "illegal": "\\n",
  64. "contains": [
  65. {
  66. "$ref": "#contains.1.starts.contains.3.contains.0"
  67. }
  68. ]
  69. }
  70. ]
  71. }
  72. }
  73. ]
  74. }