* src/dfa.c (state_index): use a single call to SUCCEEDS_IN_CONTEXT.
---
 src/dfa.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/dfa.c b/src/dfa.c
index b28956c..2fb7bf7 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -2014,9 +2014,7 @@ state_index (struct dfa *d, position_set const *s, int 
context)
     if (d->tokens[s->elems[j].index] < 0)
       {
         constraint = s->elems[j].constraint;
-        if (SUCCEEDS_IN_CONTEXT(constraint, context, CTX_NONE)
-            || SUCCEEDS_IN_CONTEXT(constraint, context, CTX_NEWLINE)
-            || SUCCEEDS_IN_CONTEXT(constraint, context, CTX_LETTER))
+        if (SUCCEEDS_IN_CONTEXT(constraint, context, CTX_ANY))
           d->states[i].constraint |= constraint;
         if (! d->states[i].first_end)
           d->states[i].first_end = d->tokens[s->elems[j].index];
-- 
1.7.7.1


Reply via email to