mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #109 from alokmenghrajani/detect-opa-language
Add detection for opa (http://www.opalang.org/).
This commit is contained in:
@@ -692,6 +692,11 @@ Objective-J:
|
|||||||
- .j
|
- .j
|
||||||
- .sj
|
- .sj
|
||||||
|
|
||||||
|
Opa:
|
||||||
|
type: programming
|
||||||
|
extensions:
|
||||||
|
- .opa
|
||||||
|
|
||||||
OpenCL:
|
OpenCL:
|
||||||
type: programming
|
type: programming
|
||||||
group: C
|
group: C
|
||||||
|
|||||||
9
test/fixtures/hello_syntax1.opa
vendored
Normal file
9
test/fixtures/hello_syntax1.opa
vendored
Normal 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
11
test/fixtures/hello_syntax2.opa
vendored
Normal 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"
|
||||||
|
}
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user