code: function subMode(lexeme, mode) {
      var values = mode.contains
      var length = values.length
      var index = -1
  
      while (++index < length) {
        if (test(values[index].beginRe, lexeme)) {
          return values[index]
        }
      }
    }
docs: Check a sub-mode.