tex.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "contains": [
  3. {
  4. "className": "tag",
  5. "begin": "\\\\",
  6. "relevance": 0,
  7. "contains": [
  8. {
  9. "className": "name",
  10. "variants": [
  11. {
  12. "begin": "[a-zA-Z\\x{0430}-\\x{044f}\\x{0410}-\\x{042f}]+[*]?"
  13. },
  14. {
  15. "begin": "[^a-zA-Z\\x{0430}-\\x{044f}\\x{0410}-\\x{042f0}-9]"
  16. }
  17. ],
  18. "starts": {
  19. "endsWithParent": true,
  20. "relevance": 0,
  21. "contains": [
  22. {
  23. "className": "string",
  24. "variants": [
  25. {
  26. "begin": "\\[",
  27. "end": "\\]"
  28. },
  29. {
  30. "begin": "\\{",
  31. "end": "\\}"
  32. }
  33. ]
  34. },
  35. {
  36. "begin": "\\s*=\\s*",
  37. "endsWithParent": true,
  38. "relevance": 0,
  39. "contains": [
  40. {
  41. "className": "number",
  42. "begin": "-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?"
  43. }
  44. ]
  45. }
  46. ]
  47. }
  48. }
  49. ]
  50. },
  51. {
  52. "className": "formula",
  53. "contains": [
  54. {
  55. "$ref": "#contains.0"
  56. }
  57. ],
  58. "relevance": 0,
  59. "variants": [
  60. {
  61. "begin": "\\$\\$",
  62. "end": "\\$\\$"
  63. },
  64. {
  65. "begin": "\\$",
  66. "end": "\\$"
  67. }
  68. ]
  69. },
  70. {
  71. "className": "comment",
  72. "begin": "%",
  73. "end": "$",
  74. "contains": [
  75. {
  76. "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"
  77. },
  78. {
  79. "className": "doctag",
  80. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  81. "relevance": 0
  82. }
  83. ],
  84. "relevance": 0
  85. }
  86. ]
  87. }