/framework/vendor/spyc/lib/spyc.yaml

http://zoop.googlecode.com/ · YAML · 196 lines · 111 code · 53 blank · 32 comment · 0 complexity · 84b6bd1b9bc0921e25622e836b0bd9c3 MD5 · raw file

  1. #
  2. # S P Y C
  3. # a simple php yaml class
  4. #
  5. # authors: [vlad andersen (vlad.andersen@gmail.com), chris wanstrath (chris@ozmm.org)]
  6. # websites: [http://www.yaml.org, http://spyc.sourceforge.net/]
  7. # license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
  8. # copyright: (c) 2005-2006 Chris Wanstrath, 2006-2009 Vlad Andersen
  9. #
  10. # spyc.yml - A file containing the YAML that Spyc understands.
  11. ---
  12. # Mappings - with proper types
  13. String: Anyone's name, really.
  14. Int: 13
  15. True: true
  16. False: false
  17. Zero: 0
  18. Null: NULL
  19. Float: 5.34
  20. # A sequence
  21. - PHP Class
  22. - Basic YAML Loader
  23. - Very Basic YAML Dumper
  24. # A sequence of a sequence
  25. -
  26. - YAML is so easy to learn.
  27. - Your config files will never be the same.
  28. # Sequence of mappings
  29. -
  30. cpu: 1.5ghz
  31. ram: 1 gig
  32. os : os x 10.4.1
  33. # Mapped sequence
  34. domains:
  35. - yaml.org
  36. - php.net
  37. # A sequence like this.
  38. - program: Adium
  39. platform: OS X
  40. type: Chat Client
  41. # A folded block as a mapped value
  42. no time: >
  43. There isn't any time
  44. for your tricks!
  45. Do you understand?
  46. # A literal block as a mapped value
  47. some time: |
  48. There is nothing but time
  49. for your tricks.
  50. # Crazy combinations
  51. databases:
  52. - name: spartan
  53. notes:
  54. - Needs to be backed up
  55. - Needs to be normalized
  56. type: mysql
  57. # You can be a bit tricky
  58. "if: you'd": like
  59. # Inline sequences
  60. - [One, Two, Three, Four]
  61. # Nested Inline Sequences
  62. - [One, [Two, And, Three], Four, Five]
  63. # Nested Nested Inline Sequences
  64. - [This, [Is, Getting, [Ridiculous, Guys]], Seriously, [Show, Mercy]]
  65. # Inline mappings
  66. - {name: chris, age: young, brand: lucky strike}
  67. # Nested inline mappings
  68. - {name: mark, age: older than chris, brand: [marlboro, lucky strike]}
  69. # References -- they're shaky, but functional
  70. dynamic languages: &DLANGS
  71. - Perl
  72. - Python
  73. - PHP
  74. - Ruby
  75. compiled languages: &CLANGS
  76. - C/C++
  77. - Java
  78. all languages:
  79. - *DLANGS
  80. - *CLANGS
  81. # Added in .2.2: Escaped quotes
  82. - you know, this shouldn't work. but it does.
  83. - 'that''s my value.'
  84. - 'again, that\'s my value.'
  85. - "here's to \"quotes\", boss."
  86. # added in .2.3
  87. - {name: "Foo, Bar's", age: 20}
  88. # Added in .2.4: bug [ 1418193 ] Quote Values in Nested Arrays
  89. - [a, ['1', "2"], b]
  90. # Added in .2.4: malformed YAML
  91. all
  92. javascripts: [dom1.js, dom.js]
  93. # Added in .2
  94. 1040: Ooo, a numeric key! # And working comments? Wow! Colons in comments: a menace (0.3).
  95. hash_1: Hash #and a comment
  96. hash_2: "Hash #and a comment"
  97. "hash#3": "Hash (#) can appear in key too"
  98. float_test: 1.0
  99. float_test_with_quotes: '1.0'
  100. float_inverse_test: 001
  101. a_really_large_number: 115792089237316195423570985008687907853269984665640564039457584007913129639936 # 2^256
  102. int array: [ 1, 2, 3 ]
  103. array on several lines:
  104. [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
  105. 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ]
  106. morelesskey: "<value>"
  107. array_of_zero: [0]
  108. sophisticated_array_of_zero: {rx: {tx: [0]} }
  109. switches:
  110. - { row: 0, col: 0, func: {tx: [0, 1]} }
  111. empty_sequence: [ ]
  112. empty_hash: { }
  113. special_characters: "[{]]{{]]"
  114. asterisks: "*"
  115. empty_key:
  116. :
  117. key: value
  118. trailing_colon: "foo:"
  119. multiline_items:
  120. - type: SomeItem
  121. values: [blah, blah, blah,
  122. blah]
  123. ints: [2, 54, 12,
  124. 2143]
  125. many_lines: |
  126. A quick
  127. fox
  128. jumped
  129. over
  130. a lazy
  131. dog
  132. werte:
  133. 1: nummer 1
  134. 0: Stunde 0
  135. noindent_records:
  136. - record1: value1
  137. - record2: value2
  138. "a:1": [1000]
  139. "a:2":
  140. - 2000
  141. # [Endloop]
  142. endloop: |
  143. Does this line in the end indeed make Spyc go to an infinite loop?