Skip to content

Commit 3ffa7ed

Browse files
committed
Bump cmd-help syntax to latest
This update includes an overhaul of scope names to better support the set of themes included with bat. You can find a visual diff for every theme in this PR: victor-gp/cmd-help-sublime-syntax#17 This commit updates the cmd-help syntax test because the scopes (-> colors) have changed.
1 parent 41ca247 commit 3ffa7ed

File tree

4 files changed

+73
-94
lines changed

4 files changed

+73
-94
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- Added a new VimHelp syntax, see #2366 (@Freed-Wu)
2323
- Associate `pdm.lock` with `TOML` syntax, see #2410
2424
- `Todo.txt`: Fix highlighting of contexts and projects at beginning of done.txt, see #2411
25+
- `cmd-help`: overhaul scope names (colors) to improve theme support; misc syntax improvements. See #2419 (@victor-gp)
2526

2627
## Themes
2728

assets/syntaxes/02_Extra/cmd-help

Submodule cmd-help updated 184 files
Lines changed: 39 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,43 @@
1-
bat 0.20.0 (e735562-modified)
2-
A cat(1) clone with syntax highlighting and Git integration.
1+
bat 0.22.1
2+
A cat(1) clone with wings.
33

4-
USAGE:
4+
Use '--help' instead of '-h' to see a more detailed version of the help text.
5+
6+
USAGE:
57
 bat [OPTIONS] [FILE]...
68
 bat <SUBCOMMAND>
79

8-
OPTIONS:
9-
 -A, --show-all
10-
 Show non-printable characters (space, tab, newline, ..).
11-
12-
 -p, --plain Show plain style (alias for '--style=plain').
13-
 -l, --language <language> Set the language for syntax highlighting.
14-
 -H, --highlight-line <N:M>... Highlight lines N through M.
15-
 --file-name <name>... Specify the name to display for a file.
16-
 -d, --diff
17-
 Only show lines that have been added/removed/modified.
18-
19-
 --tabs <T> Set the tab width to T spaces.
20-
 --wrap <mode>
21-
 Specify the text-wrapping mode (*auto*, never, character).
22-
23-
 -n, --number
24-
 Show line numbers (alias for '--style=numbers').
25-
26-
 --color <when> When to use colors (*auto*, never, always).
27-
 --italic-text <when> Use italics in output (always, *never*)
28-
 --decorations <when>
29-
 When to show the decorations (*auto*, never, always).
30-
31-
 --paging <when>
32-
 Specify when to use the pager, or use `-P` to disable (*auto*, never,
33-
 always).
34-
 -m, --map-syntax <glob:syntax>...
35-
 Use the specified syntax for files matching the glob pattern
36-
 ('*.cpp:C++').
37-
 --theme <theme> Set the color theme for syntax highlighting.
38-
 --list-themes Display all supported highlighting themes.
39-
 --style <components>
40-
 Comma-separated list of style elements to display (*auto*, full, plain,
41-
 changes, header, grid, rule, numbers, snip).
42-
 -r, --line-range <N:M>... Only print the lines from N to M.
43-
 -L, --list-languages Display all supported languages.
44-
 -h, --help Print this help message.
45-
 -V, --version Show version information.
46-
47-
ARGS:
48-
 <FILE>... File(s) to print / concatenate. Use '-' for standard input.
49-
50-
SUBCOMMANDS:
51-
 cache Modify the syntax-definition and theme cache
52-
53-
Note: `bat -h` prints a short and concise overview while `bat --help` gives all
54-
details.
10+
ARGS:
11+
 <FILE>... File(s) to print / concatenate. Use '-' for standard input.
12+
13+
OPTIONS:
14+
 -A, --show-all Show non-printable characters (space, tab, newline, ..).
15+
 -p, --plain Show plain style (alias for '--style=plain').
16+
 -l, --language <language> Set the language for syntax highlighting.
17+
 -H, --highlight-line <N:M> Highlight lines N through M.
18+
 --file-name <name> Specify the name to display for a file.
19+
 -d, --diff Only show lines that have been added/removed/modified.
20+
 --tabs <T> Set the tab width to T spaces.
21+
 --wrap <mode> Specify the text-wrapping mode (*auto*, never, character).
22+
 -n, --number Show line numbers (alias for '--style=numbers').
23+
 --color <when> When to use colors (*auto*, never, always).
24+
 --italic-text <when> Use italics in output (always, *never*)
25+
 --decorations <when> When to show the decorations (*auto*, never, always).
26+
 --paging <when> Specify when to use the pager, or use `-P` to disable (*auto*,
27+
 never, always).
28+
 -m, --map-syntax <glob:syntax> Use the specified syntax for files matching the glob pattern
29+
 ('*.cpp:C++').
30+
 --theme <theme> Set the color theme for syntax highlighting.
31+
 --list-themes Display all supported highlighting themes.
32+
 --style <components> Comma-separated list of style elements to display (*default*,
33+
 auto, full, plain, changes, header, header-filename,
34+
 header-filesize, grid, rule, numbers, snip).
35+
 -r, --line-range <N:M> Only print the lines from N to M.
36+
 -L, --list-languages Display all supported languages.
37+
 -h, --help Print this help message.
38+
 -V, --version Print version information
39+
40+
SUBCOMMANDS:
41+
 cache Modify the syntax-definition and theme cache
42+
43+
Note: `bat -h` prints a short and concise overview while `bat --help` gives all details.
Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,43 @@
1-
bat 0.20.0 (e735562-modified)
2-
A cat(1) clone with syntax highlighting and Git integration.
1+
bat 0.22.1
2+
A cat(1) clone with wings.
3+
4+
Use '--help' instead of '-h' to see a more detailed version of the help text.
35

46
USAGE:
57
bat [OPTIONS] [FILE]...
68
bat <SUBCOMMAND>
79

8-
OPTIONS:
9-
-A, --show-all
10-
Show non-printable characters (space, tab, newline, ..).
11-
12-
-p, --plain Show plain style (alias for '--style=plain').
13-
-l, --language <language> Set the language for syntax highlighting.
14-
-H, --highlight-line <N:M>... Highlight lines N through M.
15-
--file-name <name>... Specify the name to display for a file.
16-
-d, --diff
17-
Only show lines that have been added/removed/modified.
18-
19-
--tabs <T> Set the tab width to T spaces.
20-
--wrap <mode>
21-
Specify the text-wrapping mode (*auto*, never, character).
22-
23-
-n, --number
24-
Show line numbers (alias for '--style=numbers').
25-
26-
--color <when> When to use colors (*auto*, never, always).
27-
--italic-text <when> Use italics in output (always, *never*)
28-
--decorations <when>
29-
When to show the decorations (*auto*, never, always).
30-
31-
--paging <when>
32-
Specify when to use the pager, or use `-P` to disable (*auto*, never,
33-
always).
34-
-m, --map-syntax <glob:syntax>...
35-
Use the specified syntax for files matching the glob pattern
36-
('*.cpp:C++').
37-
--theme <theme> Set the color theme for syntax highlighting.
38-
--list-themes Display all supported highlighting themes.
39-
--style <components>
40-
Comma-separated list of style elements to display (*auto*, full, plain,
41-
changes, header, grid, rule, numbers, snip).
42-
-r, --line-range <N:M>... Only print the lines from N to M.
43-
-L, --list-languages Display all supported languages.
44-
-h, --help Print this help message.
45-
-V, --version Show version information.
46-
4710
ARGS:
4811
<FILE>... File(s) to print / concatenate. Use '-' for standard input.
4912

13+
OPTIONS:
14+
-A, --show-all Show non-printable characters (space, tab, newline, ..).
15+
-p, --plain Show plain style (alias for '--style=plain').
16+
-l, --language <language> Set the language for syntax highlighting.
17+
-H, --highlight-line <N:M> Highlight lines N through M.
18+
--file-name <name> Specify the name to display for a file.
19+
-d, --diff Only show lines that have been added/removed/modified.
20+
--tabs <T> Set the tab width to T spaces.
21+
--wrap <mode> Specify the text-wrapping mode (*auto*, never, character).
22+
-n, --number Show line numbers (alias for '--style=numbers').
23+
--color <when> When to use colors (*auto*, never, always).
24+
--italic-text <when> Use italics in output (always, *never*)
25+
--decorations <when> When to show the decorations (*auto*, never, always).
26+
--paging <when> Specify when to use the pager, or use `-P` to disable (*auto*,
27+
never, always).
28+
-m, --map-syntax <glob:syntax> Use the specified syntax for files matching the glob pattern
29+
('*.cpp:C++').
30+
--theme <theme> Set the color theme for syntax highlighting.
31+
--list-themes Display all supported highlighting themes.
32+
--style <components> Comma-separated list of style elements to display (*default*,
33+
auto, full, plain, changes, header, header-filename,
34+
header-filesize, grid, rule, numbers, snip).
35+
-r, --line-range <N:M> Only print the lines from N to M.
36+
-L, --list-languages Display all supported languages.
37+
-h, --help Print this help message.
38+
-V, --version Print version information
39+
5040
SUBCOMMANDS:
5141
cache Modify the syntax-definition and theme cache
5242

53-
Note: `bat -h` prints a short and concise overview while `bat --help` gives all
54-
details.
43+
Note: `bat -h` prints a short and concise overview while `bat --help` gives all details.

0 commit comments

Comments
 (0)