Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9348946
golo.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
golo.js
View Options
/*
Language: Golo
Author: Philippe Charriere <ph.charriere@gmail.com>
Description: a lightweight dynamic language for the JVM
Website: http://golo-lang.org/
*/
function
golo
(
hljs
)
{
const
KEYWORDS
=
[
"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"
,
"DynamicObject|10"
,
"DynamicVariable"
,
"struct"
,
"Observable"
,
"map"
,
"set"
,
"vector"
,
"list"
,
"array"
];
return
{
name
:
'Golo'
,
keywords
:
{
keyword
:
KEYWORDS
,
literal
:
[
"true"
,
"false"
,
"null"
]
},
contains
:
[
hljs
.
HASH_COMMENT_MODE
,
hljs
.
QUOTE_STRING_MODE
,
hljs
.
C_NUMBER_MODE
,
{
className
:
'meta'
,
begin
:
'@[A-Za-z]+'
}
]
};
}
module
.
exports
=
golo
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 6:58 PM (6 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3360484
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment