Here comes a quick patch for the latest release. This adds device and host to addClauses and fixes issue with term order.
I hope the patches are self explanatory.
The term order fix is some how a workaround for an order dependency in the clauses lists. Somehow, the regexp code depends on the order of these clauses. It's not a big issue, if you order the terms carefully (i.e. FooBar before Foo), but maybe there it a simple regexp trick to make the matching more greedy. With the old syntax file, the line !$omp taskgroup would have been only detected as task not as taskgroup.
And thanks again for merging my previous PR so quickly. I hope this time, there are no errors with the new tests ;-) .
Hi Erik,
Here comes a quick patch for the latest release. This adds
device
andhost
to addClauses and fixes issue with term order.I hope the patches are self explanatory.
The term order fix is some how a workaround for an order dependency in the clauses lists. Somehow, the regexp code depends on the order of these clauses. It's not a big issue, if you order the terms carefully (i.e.
FooBar
beforeFoo
), but maybe there it a simple regexp trick to make the matching more greedy. With the old syntax file, the line!$omp taskgroup
would have been only detected astask
not astaskgroup
.And thanks again for merging my previous PR so quickly. I hope this time, there are no errors with the new tests ;-) .