apache.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "aliases": [
  3. "apacheconf"
  4. ],
  5. "case_insensitive": true,
  6. "contains": [
  7. {
  8. "className": "comment",
  9. "begin": "#",
  10. "end": "$",
  11. "contains": [
  12. {
  13. "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"
  14. },
  15. {
  16. "className": "doctag",
  17. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  18. "relevance": 0
  19. }
  20. ]
  21. },
  22. {
  23. "className": "section",
  24. "begin": "<\/?",
  25. "end": ">"
  26. },
  27. {
  28. "className": "attribute",
  29. "begin": "\\w+",
  30. "relevance": 0,
  31. "keywords": {
  32. "nomarkup": "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"
  33. },
  34. "starts": {
  35. "end": "$",
  36. "relevance": 0,
  37. "keywords": {
  38. "literal": "on off all"
  39. },
  40. "contains": [
  41. {
  42. "className": "meta",
  43. "begin": "\\s\\[",
  44. "end": "\\]$"
  45. },
  46. {
  47. "className": "variable",
  48. "begin": "[\\$%]\\{",
  49. "end": "\\}",
  50. "contains": [
  51. "self",
  52. {
  53. "className": "number",
  54. "begin": "[\\$%]\\d+"
  55. }
  56. ]
  57. },
  58. {
  59. "$ref": "#contains.2.starts.contains.1.contains.1"
  60. },
  61. {
  62. "className": "string",
  63. "begin": "\"",
  64. "end": "\"",
  65. "illegal": "\\n",
  66. "contains": [
  67. {
  68. "begin": "\\\\[\\s\\S]",
  69. "relevance": 0
  70. }
  71. ]
  72. }
  73. ]
  74. }
  75. }
  76. ],
  77. "illegal": "\\S"
  78. }