aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples/x.nim
diff options
context:
space:
mode:
authorJad Altahan <xviyy@aol.com>2019-01-30 11:35:01 +1100
committerJad Altahan <xviyy@aol.com>2019-01-30 11:35:01 +1100
commit86900d9f6c64e0598e5b217a1d393e55cb53602b (patch)
tree8ff373d973fcc7025b02bf24d0aee94aa387cac0 /test/examples/x.nim
parent850cfb235e8e92c5b180c94f81d599f88e8cef01 (diff)
downloadscintilla-mirror-86900d9f6c64e0598e5b217a1d393e55cb53602b.tar.gz
Feature [feature-requests:#1261]. Enhance the styling of backticks in Nim
Diffstat (limited to 'test/examples/x.nim')
-rw-r--r--test/examples/x.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/examples/x.nim b/test/examples/x.nim
index 07c9d216f..4bf0de737 100644
--- a/test/examples/x.nim
+++ b/test/examples/x.nim
@@ -4,3 +4,9 @@ let s = "foobar"
# Feature #1260
{.ident.}
stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")
+
+# Feature #1261
+# IsFuncName("proc") so style ticks as SCE_NIM_FUNCNAME:
+proc `$` (x: myDataType): string = ...
+# Style ticks as SCE_NIM_BACKTICKS:
+if `==`( `+`(3,4),7): echo "True"