Skip to content

Commit

Permalink
Use text instead of image in grep example.
Browse files Browse the repository at this point in the history
That way, it can be rendered crisp and taking light/dark mode
into account.
  • Loading branch information
hzeller committed Jul 2, 2024
1 parent 6b04c7b commit fda4d16
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,20 @@ AST of a rule matches a pattern
bant print ... -g "scan.*test"
```

![print grep output](img/grep-print.png)
<pre style='font-size: larger;'>
<div style='color: gray; display: inline-block;'># ./bant/frontend/BUILD:80:1-7: //bant/frontend:scanner_test</div>
<div style='font-weight: bold; display: inline-block;'>cc_test</div>(
<div style='color: magenta; display: inline-block;'>name</div> = "<div style='filter: invert(100%); backdrop-filter: invert(0%); display: inline-block;'>scanner_test</div>",
<div style='color: magenta; display: inline-block;'>size</div> = "small",
<div style='color: magenta; display: inline-block;'>srcs</div> = ["<div style='filter: invert(100%); backdrop-filter: invert(0%); display: inline-block;'>scanner_test</div>.cc"],
<div style='color: magenta; display: inline-block;'>deps</div> = [
":named-content",
":parser",
"@googletest//:gtest",
"@googletest//:gtest_main"
]
)
</pre>

#### Workspace

Expand Down

0 comments on commit fda4d16

Please sign in to comment.