mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
added a space when rendering some expressions so they're more readable
This commit is contained in:
parent
03b358f6d1
commit
e84b60762a
33 changed files with 450 additions and 445 deletions
|
@ -30,6 +30,11 @@
|
||||||
namespace zeek::detail {
|
namespace zeek::detail {
|
||||||
|
|
||||||
const char* expr_name(ExprTag t) {
|
const char* expr_name(ExprTag t) {
|
||||||
|
// Note that some of the names in the following have trailing spaces.
|
||||||
|
// These are for unary operations that (1) are identified by names
|
||||||
|
// rather than symbols, and (2) don't have custom ExprDescribe printers.
|
||||||
|
// Adding the spaces here lets them leverage the UnaryExpr::ExprDescribe
|
||||||
|
// method without it having to know about such expressions.
|
||||||
static const char* expr_names[int(NUM_EXPRS)] = {
|
static const char* expr_names[int(NUM_EXPRS)] = {
|
||||||
"name",
|
"name",
|
||||||
"const",
|
"const",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue