Skip to content

Commit 6e4be0e

Browse files
Include tilde in argument charset (#666)
1 parent fb55ca9 commit 6e4be0e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/filter/grammar.pest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CMD_START = _{ ":" }
33
CMT_START = _{ "#" }
44
CMD_END = _{("="|"/")}
55
CMD_SEP = _{(","|NEWLINE)}
6-
ALNUM = _{( ASCII_ALPHANUMERIC | "_" | "-" | "+" | "." | "*" )}
6+
ALNUM = _{( ASCII_ALPHANUMERIC | "_" | "-" | "+" | "." | "*" | "~")}
77
GROUP_START = _{ "[" }
88
GROUP_END = _{ "]" }
99

tests/filter/pretty_print.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
$ josh-filter -p :/a
44
:/a
5+
$ josh-filter -p :/a~
6+
:/a~
57
$ josh-filter -p :/a:/b
68
:/a/b
79
$ josh-filter -p :[:/a:/b,:/a/b]

0 commit comments

Comments
 (0)