aboutsummaryrefslogtreecommitdiffstats
path: root/test/rebrackloc.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/rebrackloc.awk')
-rw-r--r--test/rebrackloc.awk31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/rebrackloc.awk b/test/rebrackloc.awk
new file mode 100644
index 00000000..c5987fcb
--- /dev/null
+++ b/test/rebrackloc.awk
@@ -0,0 +1,31 @@
+match($0, /([Nn]ew) Value +[\([]? *([[:upper:]]+)/, f) {
+ print "re1", NR, f[1], f[2]
+}
+
+match($0, /([][])/, f) {
+ print "re2", NR, f[1]
+}
+
+/[]]/ {
+ print "re3", NR, $0
+}
+
+/[\[]/ {
+ print "re4", NR, $0
+}
+
+/[[]/ {
+ print "re5", NR, $0
+}
+
+/[][]/ {
+ print "re6", NR, $0
+}
+
+/[\([][[:upper:]]*/ {
+ print "re7", NR, $0
+}
+
+/[\([]/ {
+ print "re8", NR, $0
+}