From 8b99f2cfdd7ed2274afa7bf003850ce4213cbfd3 Mon Sep 17 00:00:00 2001 From: Jad Altahan Date: Tue, 29 Jan 2019 09:18:07 +1100 Subject: Feature [feature-requests:#1260]. Fix inconsistency with dot styling in Nim. --- test/examples/x.nim | 6 ++++++ test/examples/x.nim.styled | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 test/examples/x.nim create mode 100644 test/examples/x.nim.styled (limited to 'test/examples') 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} -- cgit v1.2.3