summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-04-06 16:23:03 +0000
committerUlrich Müller <ulm@gentoo.org>2015-04-06 16:24:17 +0000
commit6611d008e9d18e9da243b0ee8076ab3ae22d5355 (patch)
treed505709d62a0520ff3e7fa9055a46539386bf8b4 /test-plans/Hello.vb
downloademacs-6611d008e9d18e9da243b0ee8076ab3ae22d5355.tar.gz
emacs-6611d008e9d18e9da243b0ee8076ab3ae22d5355.tar.bz2
emacs-6611d008e9d18e9da243b0ee8076ab3ae22d5355.zip
Import test plans.
Diffstat (limited to 'test-plans/Hello.vb')
-rw-r--r--test-plans/Hello.vb33
1 files changed, 33 insertions, 0 deletions
diff --git a/test-plans/Hello.vb b/test-plans/Hello.vb
new file mode 100644
index 0000000..4511c24
--- /dev/null
+++ b/test-plans/Hello.vb
@@ -0,0 +1,33 @@
+' First of all, this comment should be highlighted in a different
+' font than the code.
+'
+' Next, the Function, Class, and Sub declarations should be
+' highlighted. Their respective names should also be highlighted, but
+' in a different font than the rest of the declaration.
+Public Function IsProgramRunning() As Boolean
+ ' The name of the variable is in the normal font face, but the
+ ' keyword True should be highlighted.
+ IsProgramRunning = True
+End Function
+
+Public Class HelloWorld
+ ' Strings get their own font face.
+ Private hello_text As String = "Hello, World!"
+
+ Public Sub DoHello()
+ Console.WriteLine(Me.hello_text)
+ End Sub
+End Class
+
+Sub Main()
+ ' If you press <Tab> on the following lines, that line
+ ' should be auto-indented to eight spaces (the visual-basic-mode
+ ' default).
+ Dim ipr As Boolean = IsProgramRunning()
+ Dim hw As New HelloWorld()
+
+ ' However, if you press <Tab> on the next line, it should be
+ ' indented to four spaces to match the line above it (i.e. this
+ ' comment).
+ hw.DoHello()
+End Sub