aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples
diff options
context:
space:
mode:
authorJad Altahan <xviyy@aol.com>2019-01-29 09:18:07 +1100
committerJad Altahan <xviyy@aol.com>2019-01-29 09:18:07 +1100
commita207c0aa819f933567139c5f5b5625e5f659c3d2 (patch)
treeeac9de905dd919555a6dea589a09eb62ed49f974 /test/examples
parent38eaf3e8dd62005ee858b7b3d0e8a345bd8cdd05 (diff)
downloadscintilla-mirror-a207c0aa819f933567139c5f5b5625e5f659c3d2.tar.gz
Backport: Feature [feature-requests:#1260]. Fix inconsistency with dot styling in Nim.
Backport of changeset 7240:99281d1bec87.
Diffstat (limited to 'test/examples')
-rw-r--r--test/examples/x.nim6
-rw-r--r--test/examples/x.nim.styled6
2 files changed, 12 insertions, 0 deletions
diff --git a/test/examples/x.nim b/test/examples/x.nim
new file mode 100644
index 000000000..07c9d216f
--- /dev/null
+++ b/test/examples/x.nim
@@ -0,0 +1,6 @@
+# Tests for Nim
+let s = "foobar"
+
+# Feature #1260
+{.ident.}
+stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")
diff --git a/test/examples/x.nim.styled b/test/examples/x.nim.styled
new file mode 100644
index 000000000..fc1532e60
--- /dev/null
+++ b/test/examples/x.nim.styled
@@ -0,0 +1,6 @@
+{3}# Tests for Nim
+{8}let{0} {16}s{0} {15}={0} {6}"foobar"{0}
+
+{3}# Feature #1260
+{15}{.{16}ident{15}.}{0}
+{16}stdin{15}.{16}readLine{15}.{16}split{15}.{16}map{15}({16}parseInt{15}).{16}max{15}.{11}`$`{15}.{16}echo{15}({6}" is the maximum!"{15}){0}