Add detection for opa (http://www.opalang.org/).

This commit is contained in:
Alok Menghrajani
2012-01-30 17:42:09 -08:00
parent 7974d23444
commit a096e3df66
3 changed files with 18 additions and 1 deletions

View File

@@ -342,7 +342,7 @@ Fancy:
Fantom:
type: programming
lexer: Java
lexer: Java
extensions:
- .fan
@@ -691,6 +691,11 @@ Objective-J:
- .j
- .sj
Opa:
type: programming
extensions:
- .opa
OpenCL:
type: programming
group: C

5
test/fixtures/hello_syntax1.opa vendored Normal file
View File

@@ -0,0 +1,5 @@
server = Server.one_page_bundle("Hello World",
[],
[],
_ -> <h1>Hello, world</h1>)

7
test/fixtures/hello_syntax2.opa vendored Normal file
View File

@@ -0,0 +1,7 @@
Server.start(
Server.http,
{
page: function() { <h1>Hello, world</h1> },
title: "Hello, world"
}
)