Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] css: highlight subcommands for dvc #713

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Documentation/Markdown/lang/dvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ let _javascript = function(hljs) {
}
},
{
begin: /dvc [a-z-]+/,
begin: /dvc [a-z-]+ ?/,
lexemes: '[a-z-]+',
keywords: {
built_in:
Expand All @@ -72,6 +72,14 @@ let _javascript = function(hljs) {
'commit cache pkg tag diff version get get-url import ' +
'update'
},
contains: [
{
begin: /\w+(?![\S])/,
keywords: {
built_in: 'list show modify dir default add remove'
}
}
],
className: 'strong'
}
]
Expand Down
5 changes: 3 additions & 2 deletions src/Documentation/Markdown/lang/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ var _javascript = function(hljs) {
},
contains: [
{
begin: / dvc [a-z-]+/,
begin: / dvc [a-z-]+(\s[a-z]+)?/,
lexemes: '[a-z-]+',
keywords: {
built_in:
'help dvc init add checkout run pull push fetch status repro ' +
'remove move gc config remote metrics install root lock ' +
'unlock pipeline destroy unprotect commit cache diff tag pkg ' +
'version import-url get-url import get'
'version import-url get-url import get list show modify dir ' +
'default update'
},
className: 'strong'
}
Expand Down