Skip to content

Commit

Permalink
add new syntax test files
Browse files Browse the repository at this point in the history
  • Loading branch information
henil authored and sharkdp committed Nov 23, 2020
1 parent a5a9ac8 commit 591eba6
Show file tree
Hide file tree
Showing 18 changed files with 646 additions and 0 deletions.
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

0 comments on commit 591eba6

Please sign in to comment.