diff options
author | 2022-03-16 13:42:34 -0700 | |
---|---|---|
committer | 2022-03-17 17:15:12 -0700 | |
commit | e309a91ca8d088a60bc7335f4688cc6e8a81b04f (patch) | |
tree | 7ef9e3523858ea769b7ee8f9919aee3db3acdf29 /mk2rbc/mk2rbc_test.go | |
parent | 23162405475f5b5d1facce9f9f7d22ba39066ff0 (diff) |
Parse variable references with #s
Inside a variable reference, a # does not start
a comment.
Fixes: 218742602
Test: go test
Change-Id: I16cf04c74a8aa30482fd9293175f893e4efb60f1
Diffstat (limited to 'mk2rbc/mk2rbc_test.go')
-rw-r--r-- | mk2rbc/mk2rbc_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mk2rbc/mk2rbc_test.go b/mk2rbc/mk2rbc_test.go index 408466041..f60cd6ea5 100644 --- a/mk2rbc/mk2rbc_test.go +++ b/mk2rbc/mk2rbc_test.go @@ -254,6 +254,8 @@ def init(g, handle): in: ` $(warning this is the warning) $(warning) +$(warning # this warning starts with a pound) +$(warning this warning has a # in the middle) $(info this is the info) $(error this is the error) PRODUCT_NAME:=$(shell echo *) @@ -264,6 +266,8 @@ def init(g, handle): cfg = rblf.cfg(handle) rblf.mkwarning("product.mk", "this is the warning") rblf.mkwarning("product.mk", "") + rblf.mkwarning("product.mk", "# this warning starts with a pound") + rblf.mkwarning("product.mk", "this warning has a # in the middle") rblf.mkinfo("product.mk", "this is the info") rblf.mkerror("product.mk", "this is the error") cfg["PRODUCT_NAME"] = rblf.shell("echo *") |