Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax test files for some languages #1381

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions tests/syntax-tests/highlighted/ASP/test.asp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<html>
<body>
<!-- #include file ="headers\header.inc" -->

<%
For i = 0 To 5
Response.Write("The number is " & i & "<br />")
Next
%>

<%
Response.Write("Hello World!")
%>

<%
Dim x(2,2)
x(0,0)="Volvo"
x(0,1)="BMW"
x(0,2)="Ford"
x(1,0)="Apple"
x(1,1)="Orange"
x(1,2)="Banana"
x(2,0)="Coke"
x(2,1)="Pepsi"
x(2,2)="Sprite"
for i=0 to 2
response.write("<p>")
for j=0 to 2
response.write(x(i,j) & "<br />")
next
response.write("</p>")
next
%>

</body>
</html>
25 changes: 25 additions & 0 deletions tests/syntax-tests/highlighted/AppleScript/test.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- This is a comment

property defaultClientName : "Mary Smith"

on greetClient(nameOfClient)
 display dialog ("Hello " & nameOfClient & "!")
end greetClient


script testGreet
 greetClient(defaultClientName)
end script

run testGreet
greetClient("Joe Jones")

set myList to {1, "what", 3}
set beginning of myList to 0
set end of myList to "four"

myList

tell application "TextEdit"
 paragraph 1 of document 1
end tell
Loading