forked from highlightjs/highlight.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,3 +157,4 @@ Contributors: | |
- Peter Piwowarski <[email protected]> | ||
- Kenta Sato <[email protected]> | ||
- Anthony Scemama <[email protected]> | ||
- Philippe Charrière <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,3 +154,4 @@ URL: https://highlightjs.org/ | |
- Алексис Эно <[email protected]> | ||
- Петер Пивоварски <[email protected]> | ||
- Кента Сато <[email protected]> | ||
- Филипп Шарьер <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
Language: Golo | ||
Author: Philippe Charriere <[email protected]> | ||
Description: a lightweight dynamic language for the JVM, see http://golo-lang.org/ | ||
Category: dynamic language for Java | ||
*/ | ||
|
||
function(hljs) { | ||
return { | ||
keywords: { | ||
literal : 'true false null', | ||
keyword: 'println readln print import module function local return let var ' + | ||
'while for foreach times in case when match with break continue ' + | ||
'augment augmentation each find filter reduce' + | ||
'if then else otherwise try catch finally raise throw orIfNull ', | ||
typename: | ||
'DynamicObject|10 DynamicVariable struct Observable map set vector list array' | ||
}, | ||
contains: [ | ||
hljs.HASH_COMMENT_MODE, | ||
hljs.QUOTE_STRING_MODE, | ||
hljs.C_NUMBER_MODE, | ||
{ | ||
className: 'annotation', begin: '@[A-Za-z]+' | ||
} | ||
] | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module hello | ||
|
||
function dyno = -> DynamicObject() | ||
|
||
struct human = { name } | ||
|
||
function main = |args| { | ||
let a = 1 | ||
var b = 2 | ||
|
||
println("hello") | ||
|
||
let john = human("John Doe") | ||
} |