Skip to content

Commit 4f8d1bb

Browse files
committed
Add less-stripped regression test
The original `less` help message's format forces cmd-help to exit early. Stripped means that we've filtered those characters with `bat --strip-ansi=always` and/or `sed 's/.\x08//g'` Cf: https://github.com/victor-gp/cmd-help-sublime-syntax/wiki/Configuration-tips#removing-special-characters-from-the-help-message Lots of inconsistencies in this help message. I'll come back at some point and try to fix them.
1 parent 431e650 commit 4f8d1bb

File tree

3 files changed

+518
-2
lines changed

3 files changed

+518
-2
lines changed

syntaxes/cmd-help.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ scope_variables: # last scope is matched first
8888

8989
contexts:
9090
prototype:
91-
# abort if color escape codes
91+
# exit if there are color escape codes
9292
- include: color-escape-codes-sink
93-
# abort if formatted with backspaces
93+
# exit if there are backspaces (overstrike formatting)
9494
- match: (?=.*[\b])
9595
set: sink
9696

0 commit comments

Comments
 (0)