Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339634
leaf.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
leaf.js
View Options
/*
Language: Leaf
Author: Hale Chan <halechan@qq.com>
Description: Based on the Leaf reference from https://vapor.github.io/documentation/guide/leaf.html.
*/
function
leaf
(
hljs
)
{
return
{
name
:
'Leaf'
,
contains
:
[
{
className
:
'function'
,
begin
:
'#+'
+
'[A-Za-z_0-9]*'
+
'\\('
,
end
:
/ \{/
,
returnBegin
:
true
,
excludeEnd
:
true
,
contains
:
[
{
className
:
'keyword'
,
begin
:
'#+'
},
{
className
:
'title'
,
begin
:
'[A-Za-z_][A-Za-z_0-9]*'
},
{
className
:
'params'
,
begin
:
'\\('
,
end
:
'\\)'
,
endsParent
:
true
,
contains
:
[
{
className
:
'string'
,
begin
:
'"'
,
end
:
'"'
},
{
className
:
'variable'
,
begin
:
'[A-Za-z_][A-Za-z_0-9]*'
}
]
}
]
}
]
};
}
module
.
exports
=
leaf
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 9:49 AM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3354619
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment