aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/vb
diff options
context:
space:
mode:
Diffstat (limited to 'lexilla/test/examples/vb')
-rw-r--r--lexilla/test/examples/vb/SciTE.properties2
-rw-r--r--lexilla/test/examples/vb/x.vb13
-rw-r--r--lexilla/test/examples/vb/x.vb.styled13
3 files changed, 28 insertions, 0 deletions
diff --git a/lexilla/test/examples/vb/SciTE.properties b/lexilla/test/examples/vb/SciTE.properties
new file mode 100644
index 000000000..54fead3f1
--- /dev/null
+++ b/lexilla/test/examples/vb/SciTE.properties
@@ -0,0 +1,2 @@
+lexer.*.vb=vb
+keywords.*.vb=as dim or string
diff --git a/lexilla/test/examples/vb/x.vb b/lexilla/test/examples/vb/x.vb
new file mode 100644
index 000000000..a672831a0
--- /dev/null
+++ b/lexilla/test/examples/vb/x.vb
@@ -0,0 +1,13 @@
+' String"
+Dim a As String = "hello, world"
+Dim b As String = "hello world"
+Dim c As String = "Joe said ""Hello"" to me"
+Dim d As String = "\\\\server\\share\\file.txt"
+' Character
+""C "c"C "cc"C
+' Date
+d = #5/31/1993# or # 01/01/0001 12:00:00AM #
+' Number
+123_456___789
+123_
+&b10101_01010
diff --git a/lexilla/test/examples/vb/x.vb.styled b/lexilla/test/examples/vb/x.vb.styled
new file mode 100644
index 000000000..1d19c8ae8
--- /dev/null
+++ b/lexilla/test/examples/vb/x.vb.styled
@@ -0,0 +1,13 @@
+{1}' String"
+{3}Dim{0} {7}a{0} {3}As{0} {3}String{0} {6}={0} {4}"hello, world"{0}
+{3}Dim{0} {7}b{0} {3}As{0} {3}String{0} {6}={0} {4}"hello world"{0}
+{3}Dim{0} {7}c{0} {3}As{0} {3}String{0} {6}={0} {4}"Joe said ""Hello"" to me"{0}
+{3}Dim{0} {7}d{0} {3}As{0} {3}String{0} {6}={0} {4}"\\\\server\\share\\file.txt"{0}
+{1}' Character
+{4}""C{0} {4}"c"C{0} {4}"cc"C{0}
+{1}' Date
+{7}d{0} {6}={0} {8}#5/31/1993#{0} {3}or{0} {8}# 01/01/0001 12:00:00AM #{0}
+{1}' Number
+{2}123_456___789{0}
+{2}123_{0}
+{2}&b10101_01010{0}