Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339501
diff.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
diff.js
View Options
/*
Language: Diff
Description: Unified and context diff
Author: Vasily Polovnyov <vast@whiteants.net>
Website: https://www.gnu.org/software/diffutils/
Category: common
*/
function
diff
(
hljs
)
{
return
{
name
:
'Diff'
,
aliases
:
[
'patch'
],
contains
:
[
{
className
:
'meta'
,
relevance
:
10
,
variants
:
[
{
begin
:
/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/
},
{
begin
:
/^\*\*\* +\d+,\d+ +\*\*\*\*$/
},
{
begin
:
/^\-\-\- +\d+,\d+ +\-\-\-\-$/
}
]
},
{
className
:
'comment'
,
variants
:
[
{
begin
:
/Index: /
,
end
:
/$/
},
{
begin
:
/={3,}/
,
end
:
/$/
},
{
begin
:
/^\-{3}/
,
end
:
/$/
},
{
begin
:
/^\*{3} /
,
end
:
/$/
},
{
begin
:
/^\+{3}/
,
end
:
/$/
},
{
begin
:
/^\*{15}$/
}
]
},
{
className
:
'addition'
,
begin
:
'^\\+'
,
end
:
'$'
},
{
className
:
'deletion'
,
begin
:
'^\\-'
,
end
:
'$'
},
{
className
:
'addition'
,
begin
:
'^\\!'
,
end
:
'$'
}
]
};
}
module
.
exports
=
diff
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 9:43 AM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3449650
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment