nix.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "aliases": [
  3. "nixos"
  4. ],
  5. "keywords": {
  6. "keyword": "rec with let in inherit assert if else then",
  7. "literal": "true false or and null",
  8. "built_in": "import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"
  9. },
  10. "contains": [
  11. {
  12. "className": "number",
  13. "begin": "\\b\\d+(\\.\\d+)?",
  14. "relevance": 0
  15. },
  16. {
  17. "className": "comment",
  18. "begin": "#",
  19. "end": "$",
  20. "contains": [
  21. {
  22. "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"
  23. },
  24. {
  25. "className": "doctag",
  26. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  27. "relevance": 0
  28. }
  29. ]
  30. },
  31. {
  32. "className": "comment",
  33. "begin": "\/\\*",
  34. "end": "\\*\/",
  35. "contains": [
  36. {
  37. "$ref": "#contains.1.contains.0"
  38. },
  39. {
  40. "className": "doctag",
  41. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  42. "relevance": 0
  43. }
  44. ]
  45. },
  46. {
  47. "className": "string",
  48. "contains": [
  49. {
  50. "className": "subst",
  51. "begin": "\\$\\{",
  52. "end": "}",
  53. "keywords": {
  54. "$ref": "#keywords"
  55. },
  56. "contains": {
  57. "$ref": "#contains"
  58. }
  59. }
  60. ],
  61. "variants": [
  62. {
  63. "begin": "''",
  64. "end": "''"
  65. },
  66. {
  67. "begin": "\"",
  68. "end": "\""
  69. }
  70. ]
  71. },
  72. {
  73. "begin": "[a-zA-Z0-9\\-_]+(\\s*=)",
  74. "returnBegin": true,
  75. "relevance": 0,
  76. "contains": [
  77. {
  78. "className": "attr",
  79. "begin": "\\S+"
  80. }
  81. ]
  82. }
  83. ]
  84. }