makefile.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "aliases": [
  3. "mk",
  4. "mak"
  5. ],
  6. "keywords": "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath",
  7. "lexemes": "[\\w\\-]+",
  8. "contains": [
  9. {
  10. "className": "comment",
  11. "begin": "#",
  12. "end": "$",
  13. "contains": [
  14. {
  15. "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"
  16. },
  17. {
  18. "className": "doctag",
  19. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  20. "relevance": 0
  21. }
  22. ]
  23. },
  24. {
  25. "className": "variable",
  26. "variants": [
  27. {
  28. "begin": "\\$\\([a-zA-Z_]\\w*\\)",
  29. "contains": [
  30. {
  31. "begin": "\\\\[\\s\\S]",
  32. "relevance": 0
  33. }
  34. ]
  35. },
  36. {
  37. "begin": "\\$[@%<?\\^\\+\\*]"
  38. }
  39. ]
  40. },
  41. {
  42. "className": "string",
  43. "begin": "\"",
  44. "end": "\"",
  45. "contains": [
  46. {
  47. "$ref": "#contains.1.variants.0.contains.0"
  48. },
  49. {
  50. "$ref": "#contains.1"
  51. }
  52. ]
  53. },
  54. {
  55. "className": "variable",
  56. "begin": "\\$\\([\\w\\-]+\\s",
  57. "end": "\\)",
  58. "keywords": {
  59. "built_in": "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
  60. },
  61. "contains": [
  62. {
  63. "$ref": "#contains.1"
  64. }
  65. ]
  66. },
  67. {
  68. "begin": "^[a-zA-Z_]\\w*\\s*(?=[:+?]?=)"
  69. },
  70. {
  71. "className": "meta",
  72. "begin": "^\\.PHONY:",
  73. "end": "$",
  74. "keywords": {
  75. "meta-keyword": ".PHONY"
  76. },
  77. "lexemes": "[\\.\\w]+"
  78. },
  79. {
  80. "className": "section",
  81. "begin": "^[^\\s]+:",
  82. "end": "$",
  83. "contains": [
  84. {
  85. "$ref": "#contains.1"
  86. }
  87. ]
  88. }
  89. ]
  90. }