aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2016-03-21 11:03:29 +1100
committerBen Elliston <bje@gnu.org>2016-03-21 11:03:29 +1100
commit4db4a9d4819c8b9f0763c0a93c799d37e5f71f8d (patch)
tree81b43118d34283c307626a983ef52db46c4077ca /lib
parent8f87bedd442920abadaa676e5ce0a42813d06358 (diff)
* lib/dg.exp (dg-get-options): Clean up regular expression and
remove FIXME comment about it.
Diffstat (limited to 'lib')
-rw-r--r--lib/dg.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dg.exp b/lib/dg.exp
index dfd6a6c..8b4e3c0 100644
--- a/lib/dg.exp
+++ b/lib/dg.exp
@@ -189,9 +189,7 @@ proc dg-get-options { prog } {
set tmp [grep $prog "{\[ \t\]\+dg-\[-a-z\]\+\[ \t\]\+.*\[ \t\]\+}" line]
if {![string match "" $tmp]} {
foreach i $tmp {
- # FIXME: When to use "+" and "\+" isn't clear.
- # Seems to me it took awhile to get this to work.
- regexp "(\[0-9\]\+)\[ \t\]\+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]\+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
+ regexp "(\[0-9\]+)\[ \t\]+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
append result " { $cmd $line $args }"
}
}