code: private static Transition makeTransitionToStateLiteral(String literal, final HtmlContext state) {
      return new Transition(literal) {
        @Override
        Context computeNextContext(Context prior, Matcher matcher) {
          return prior.transitionToState(state);
        }
      };
    }
docs: A transition to the given state.