lkr.syntax 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Syntax rules for the gputils .lkr files.
  2. context default
  3. #=========================
  4. # Predefined constants
  5. #
  6. keyword whole _CRUNTIME black green
  7. keyword whole _DEBUG black green
  8. keyword whole _DEBUGCODESTART black green
  9. keyword whole _DEBUGCODELEN black green
  10. keyword whole _DEBUGDATASTART black green
  11. keyword whole _DEBUGDATALEN black green
  12. keyword whole _EXTENDEDMODE black green
  13. #=========================
  14. # Keywords
  15. #
  16. keyword whole LIBPATH brightgreen
  17. keyword whole LKRPATH brightgreen
  18. keyword whole FILES brightgreen
  19. keyword whole #DEFINE brightred
  20. keyword whole #IFDEF brightred
  21. keyword whole #ELSE brightred
  22. keyword whole #FI brightred
  23. keyword whole ACCESSBANK yellow
  24. keyword whole CODEPAGE yellow
  25. keyword whole DATABANK yellow
  26. keyword whole LINEARMEM yellow
  27. keyword whole PROTECTED yellow
  28. keyword whole RESERVED yellow
  29. keyword whole SECTION yellow
  30. keyword whole SHAREBANK yellow
  31. keyword whole SHADOW yellow
  32. keyword whole STACK yellow
  33. keyword whole END brightmagenta
  34. keyword whole NAME brightmagenta
  35. keyword whole SIZE brightmagenta
  36. keyword whole START brightmagenta
  37. keyword whole RAM brown
  38. keyword whole ROM brown
  39. wholechars 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
  40. #=========================
  41. # Numbers
  42. #
  43. keyword whole 0b\{01_\}\[01_\] brightgreen
  44. keyword whole 0q\{0123456_\}\[0123456_\] brightgreen
  45. keyword whole \[-\]\{0123456789_\}\[0123456789_\] brightgreen
  46. keyword whole 0x\{0123456789ABCDEFabcdef_\}\[0123456789ABCDEFabcdef_\] brightgreen
  47. #=========================
  48. # Comments
  49. #
  50. keyword //*\n white magenta
  51. #=========================
  52. # Special symbols
  53. #
  54. keyword - brightcyan
  55. keyword \* brightcyan
  56. keyword / brightcyan
  57. keyword % brightcyan
  58. keyword \+ brightcyan
  59. keyword << brightcyan
  60. keyword >> brightcyan
  61. keyword = brightcyan
  62. keyword ( brightcyan
  63. keyword ) brightcyan
  64. keyword . brightcyan
  65. keyword : brightcyan