puppet.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "aliases": [
  3. "pp"
  4. ],
  5. "contains": [
  6. {
  7. "className": "comment",
  8. "begin": "#",
  9. "end": "$",
  10. "contains": [
  11. {
  12. "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"
  13. },
  14. {
  15. "className": "doctag",
  16. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  17. "relevance": 0
  18. }
  19. ]
  20. },
  21. {
  22. "className": "variable",
  23. "begin": "\\$([A-Za-z_]|::)(\\w|::)*"
  24. },
  25. {
  26. "className": "string",
  27. "contains": [
  28. {
  29. "begin": "\\\\[\\s\\S]",
  30. "relevance": 0
  31. },
  32. {
  33. "$ref": "#contains.1"
  34. }
  35. ],
  36. "variants": [
  37. {
  38. "begin": "'",
  39. "end": "'"
  40. },
  41. {
  42. "begin": "\"",
  43. "end": "\""
  44. }
  45. ]
  46. },
  47. {
  48. "beginKeywords": "class",
  49. "end": "\\{|;",
  50. "illegal": "=",
  51. "contains": [
  52. {
  53. "className": "title",
  54. "begin": "([A-Za-z_]|::)(\\w|::)*",
  55. "relevance": 0
  56. },
  57. {
  58. "$ref": "#contains.0"
  59. }
  60. ]
  61. },
  62. {
  63. "beginKeywords": "define",
  64. "end": "\\{",
  65. "contains": [
  66. {
  67. "className": "section",
  68. "begin": "[a-zA-Z]\\w*",
  69. "endsParent": true
  70. }
  71. ]
  72. },
  73. {
  74. "begin": "[a-zA-Z]\\w*\\s+\\{",
  75. "returnBegin": true,
  76. "end": "\\S",
  77. "contains": [
  78. {
  79. "className": "keyword",
  80. "begin": "[a-zA-Z]\\w*"
  81. },
  82. {
  83. "begin": "\\{",
  84. "end": "\\}",
  85. "keywords": {
  86. "keyword": "and case default else elsif false if in import enherits node or true undef unless main settings $string ",
  87. "literal": "alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",
  88. "built_in": "architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"
  89. },
  90. "relevance": 0,
  91. "contains": [
  92. {
  93. "$ref": "#contains.2"
  94. },
  95. {
  96. "$ref": "#contains.0"
  97. },
  98. {
  99. "begin": "[a-zA-Z_]+\\s*=>",
  100. "returnBegin": true,
  101. "end": "=>",
  102. "contains": [
  103. {
  104. "className": "attr",
  105. "begin": "[a-zA-Z]\\w*"
  106. }
  107. ]
  108. },
  109. {
  110. "className": "number",
  111. "begin": "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
  112. "relevance": 0
  113. },
  114. {
  115. "$ref": "#contains.1"
  116. }
  117. ]
  118. }
  119. ],
  120. "relevance": 0
  121. }
  122. ]
  123. }