makefile.syntax 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. context default
  2. keyword $$ brightcyan
  3. keyword $(*) yellow
  4. keyword ${*} brightgreen
  5. # GNU Makefiles
  6. keyword whole linestart define magenta
  7. keyword whole linestart endef magenta
  8. keyword whole linestart include magenta
  9. keyword whole linestart ifdef magenta
  10. keyword whole linestart ifndef magenta
  11. keyword whole linestart endif magenta
  12. keyword whole linestart if magenta
  13. keyword whole linestart ifeq magenta
  14. keyword whole linestart ifneq magenta
  15. keyword whole linestart else magenta
  16. # BSD Makefiles
  17. keyword whole linestart .\[\s\t\]elif magenta
  18. keyword whole linestart .\[\s\t\]else magenta
  19. keyword whole linestart .\[\s\t\]endfor magenta
  20. keyword whole linestart .\[\s\t\]endif magenta
  21. keyword whole linestart .\[\s\t\]for magenta
  22. keyword whole linestart .\[\s\t\]if magenta
  23. keyword whole linestart .\[\s\t\]include magenta
  24. keyword whole linestart .\[\s\t\]undef magenta
  25. keyword linestart \t lightgray red
  26. keyword whole .PHONY white
  27. keyword whole .SUFFIXES white
  28. keyword whole .DEFAULT white
  29. keyword whole .PRECIOUS white
  30. keyword whole .INTERMEDIATE white
  31. keyword whole .SECONDARY white
  32. keyword whole .DELETE_ON_ERROR white
  33. keyword whole .IGNORE white
  34. keyword whole .LOW_RESOLUTION_TIME white
  35. keyword whole .SILENT white
  36. keyword whole .EXPORT_ALL_VARIABLES white
  37. keyword whole .NOTPARALLEL white
  38. keyword whole .NOEXPORT white
  39. keyword = white
  40. keyword : yellow
  41. keyword \\\n yellow
  42. # this handles strange cases like @something@@somethingelse@ properly
  43. keyword whole @+@ brightmagenta black
  44. keyword @+@ brightmagenta black
  45. # comment
  46. context linestart # \n brown
  47. spellcheck
  48. keyword whole @+@ brightmagenta black
  49. keyword @+@ brightmagenta black
  50. # right part of an assignment
  51. context exclusive = \n brightcyan
  52. keyword \\\n yellow
  53. keyword $$ brightcyan
  54. keyword $(*) yellow
  55. keyword ${*} brightgreen
  56. keyword linestart \t lightgray red
  57. keyword whole @+@ brightmagenta black
  58. keyword @+@ brightmagenta black
  59. # shell code
  60. context exclusive linestart \t \n
  61. keyword \\\n yellow
  62. keyword $$ brightcyan
  63. keyword $(*) yellow
  64. keyword ${*} brightgreen
  65. keyword linestart \t lightgray red
  66. keyword whole @+@ brightmagenta black
  67. keyword @+@ brightmagenta black