[gtksourceview] tests: add example yaml file



commit 61ff68f62c5db6b52102d57d2c9f2b53b042a59a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 29 14:43:03 2019 -0700

    tests: add example yaml file
    
    This includes a couple snippets from the spec, to simplify testing.

 tests/syntax-highlighting/file.yaml | 68 +++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/tests/syntax-highlighting/file.yaml b/tests/syntax-highlighting/file.yaml
new file mode 100644
index 00000000..4d8ad352
--- /dev/null
+++ b/tests/syntax-highlighting/file.yaml
@@ -0,0 +1,68 @@
+# ASCII Art
+--- |
+  \//||\/||
+  // ||  ||__
+
+
+--- >
+  Mark McGwire's
+  year was crippled
+  by a knee injury.
+
+unicode: "Sosa did fine.\u263A"
+control: "\b1998\t1999\t2000\n"
+hex esc: "\x0d\x0a is \r\n"
+
+single: '"Howdy!" he cried.'
+quoted: ' # Not a ''comment''.'
+tie-fighter: '|\-*-/|'
+
+
+plain:
+  This unquoted scalar
+  spans many lines.
+
+quoted: "So does this
+  quoted scalar.\n"
+
+
+canonical: 1.23015e+3
+exponential: 12.3015e+02
+fixed: 1230.15
+negative infinity: -.inf
+not a number: .NaN
+
+null:
+booleans: [ true, false ]
+string: '012345'
+
+url: https://example.com https://example.com
+
+invoice: 34843
+date   : 2001-01-23
+bill-to: &id001
+    given  : Chris
+    family : Dumars
+    address:
+        lines: |
+            458 Walkman Dr.
+            Suite #292
+        city    : Royal Oak
+        state   : MI
+        postal  : 48046
+ship-to: *id001
+product:
+    - sku         : BL394D
+      quantity    : 4
+      description : Basketball
+      price       : 450.00
+    - sku         : BL4438H
+      quantity    : 1
+      description : Super Hoop
+      price       : 2392.00
+tax  : 251.42
+total: 4443.52
+comments:
+    Late afternoon is best.
+    Backup contact is Nancy
+    Billsmer @ 338-4338.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]