dockerfile.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "aliases": [
  3. "docker"
  4. ],
  5. "case_insensitive": true,
  6. "keywords": "from maintainer expose env arg user onbuild stopsignal",
  7. "contains": [
  8. {
  9. "className": "comment",
  10. "begin": "#",
  11. "end": "$",
  12. "contains": [
  13. {
  14. "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"
  15. },
  16. {
  17. "className": "doctag",
  18. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  19. "relevance": 0
  20. }
  21. ]
  22. },
  23. {
  24. "className": "string",
  25. "begin": "'",
  26. "end": "'",
  27. "illegal": "\\n",
  28. "contains": [
  29. {
  30. "begin": "\\\\[\\s\\S]",
  31. "relevance": 0
  32. }
  33. ]
  34. },
  35. {
  36. "className": "string",
  37. "begin": "\"",
  38. "end": "\"",
  39. "illegal": "\\n",
  40. "contains": [
  41. {
  42. "$ref": "#contains.1.contains.0"
  43. }
  44. ]
  45. },
  46. {
  47. "className": "number",
  48. "begin": "\\b\\d+(\\.\\d+)?",
  49. "relevance": 0
  50. },
  51. {
  52. "beginKeywords": "run cmd entrypoint volume add copy workdir label healthcheck shell",
  53. "starts": {
  54. "end": "[^\\\\]$",
  55. "subLanguage": "bash"
  56. }
  57. }
  58. ],
  59. "illegal": "<\/"
  60. }