Merge pull request #109 from alokmenghrajani/detect-opa-language

Add detection for opa (http://www.opalang.org/).
This commit is contained in:
Joshua Peek
2012-02-03 10:03:07 -08:00
3 changed files with 26 additions and 1 deletions

View File

@@ -692,6 +692,11 @@ Objective-J:
- .j
- .sj
Opa:
type: programming
extensions:
- .opa
OpenCL:
type: programming
group: C

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

@@ -0,0 +1,9 @@
/**
* To compile & run on port 8080:
* opa hello_syntax1.opa --
*/
server = Server.one_page_server(
"Hello, world",
-> (<h1>Hello, world</h1>)
)

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

@@ -0,0 +1,11 @@
/**
* To compile & run on port 8080:
* opa --parser js-like hello_syntax2.opa --
*/
Server.start(
Server.http,
{
page: function() { <h1>Hello, world</h1> },
title: "Hello, world"
}
)