Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 7e138d6

Browse files
author
mikesamuel
committed
test that glob style-patterns like /* are not misinterpreted as C-style comments when lang-sh is used.
1 parent 149df22 commit 7e138d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/prettify_test.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h1>Bash w/ language specified</h1>
7171
}
7272

7373
# output the 10th element of the series and halt
74-
fib | head -10 | tail -1
74+
fib | /usr/bin/*head -10 | tail -1
7575
</pre>
7676

7777
<h1>C</h1>
@@ -935,7 +935,8 @@ <h1>Protocol Buffers</h1>
935935
'`END`PUN}`END`PLN<br>' +
936936
'<br>' +
937937
'`END`COM# output the 10th element of the series and halt`END`PLN<br>' +
938-
'fib `END`PUN|`END`PLN head `END`PUN-`END`LIT10`END`PLN `END`PUN|`END' +
938+
'fib `END`PUN|`END`PLN `END`PUN/`END`PLNusr`END`PUN/`END`PLNbin`END' +
939+
'`PUN/*`END`PLNhead `END`PUN-`END`LIT10`END`PLN `END`PUN|`END' +
939940
'`PLN tail `END`PUN-`END`LIT1`END'),
940941
C: (
941942
'`COM#include &lt;stdio.h&gt;`END`PLN<br>' +

0 commit comments

Comments
 (0)