aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/tcl
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-14 08:17:00 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-14 08:17:00 +1100
commit4f1b30ebe70a6475ffeca1ce2c0dc48c8e70a5f9 (patch)
treec2cb66991d89802a7a8b18bde9aa486da5fc9614 /lexilla/test/examples/tcl
parent651e4b440ad3019a63b10d972ee36a296020e2c8 (diff)
downloadscintilla-mirror-4f1b30ebe70a6475ffeca1ce2c0dc48c8e70a5f9.tar.gz
Lexilla tests.
Diffstat (limited to 'lexilla/test/examples/tcl')
-rw-r--r--lexilla/test/examples/tcl/SciTE.properties2
-rw-r--r--lexilla/test/examples/tcl/x.tcl13
-rw-r--r--lexilla/test/examples/tcl/x.tcl.styled13
3 files changed, 28 insertions, 0 deletions
diff --git a/lexilla/test/examples/tcl/SciTE.properties b/lexilla/test/examples/tcl/SciTE.properties
new file mode 100644
index 000000000..8cecd97b4
--- /dev/null
+++ b/lexilla/test/examples/tcl/SciTE.properties
@@ -0,0 +1,2 @@
+lexer.*.tcl=tcl
+keywords.*.tcl=proc set socket vwait
diff --git a/lexilla/test/examples/tcl/x.tcl b/lexilla/test/examples/tcl/x.tcl
new file mode 100644
index 000000000..d1260fc82
--- /dev/null
+++ b/lexilla/test/examples/tcl/x.tcl
@@ -0,0 +1,13 @@
+# tcl tests
+
+#simple example
+
+proc Echo_Server {port} {
+ set s [socket -server EchoAccept $port]
+ vwait forever;
+}
+
+# Bug #1947
+
+$s($i,"n")
+set n $showArray($i,"neighbor")
diff --git a/lexilla/test/examples/tcl/x.tcl.styled b/lexilla/test/examples/tcl/x.tcl.styled
new file mode 100644
index 000000000..66af41327
--- /dev/null
+++ b/lexilla/test/examples/tcl/x.tcl.styled
@@ -0,0 +1,13 @@
+{2}# tcl tests
+{0}
+{2}#simple example
+{0}
+{12}proc{0} {7}Echo_Server{0} {6}{{7}port{6}}{0} {6}{
+{0} {12}set{0} {7}s{0} {6}[{12}socket{0} {10}-server{0} {7}EchoAccept{0} {8}$port{6}]
+{0} {12}vwait{0} {7}forever{0};
+{6}}
+{0}
+{2}# Bug #1947
+{0}
+{8}$s{6}({8}$i{6},{5}"n"{6})
+{12}set{0} {7}n{0} {8}$showArray{6}({8}$i{6},{5}"neighbor"{6})